Commit Graph

13 Commits

Author SHA1 Message Date
823b1e105e feat: implement graceful tool cancellation on stop request
- Add stop flag monitoring loop (checks every 100ms during tool execution)
- Cancel tool task immediately when stop flag is detected
- Return cancellation message to conversation history with role=tool
- Save cancellation result: '命令执行被用户取消'
- Clean up pending tasks to prevent 'Task was destroyed but it is pending' warnings
- Fix terminal_ops.py to properly cancel stdout/stderr read tasks

Known issue: Tool result display in frontend still shows arguments instead of cancellation message when expanded

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-08 04:12:50 +08:00
7890926c3d fix: improve cancellation flow and api error tracing 2026-01-30 15:36:44 +08:00
c787df2cef fix: reuse terminal container for command exec 2026-01-20 21:08:39 +08:00
aacdfc78eb fix: fallback timeout wrapper for terminal commands 2026-01-19 21:57:59 +08:00
026588bba3 fix: align toolbox python env for run_command 2026-01-19 20:58:38 +08:00
4617e00693 fix: improve terminal timeouts and clean outputs 2025-12-15 18:13:53 +08:00
8fe06753bb fix: stabilize terminal tool timeouts 2025-12-15 15:15:03 +08:00
8755688c8e feat: enhance virtual monitor command/python playback 2025-12-14 17:38:03 +08:00
7cc91571de feat: modularize frontend layout 2025-11-25 22:41:15 +08:00
7348eab83a docs: refresh readme and phase2 summary 2025-11-23 21:24:09 +08:00
b81d6760bd feat: containerize terminals and add resource controls 2025-11-23 18:49:35 +08:00
6921939c13 <fix thinking chunk> 2025-11-19 20:47:56 +08:00
fea932425a chore: initial import 2025-11-14 16:44:12 +08:00