落地 DESIGN §7.2 原标"待"的 cancel 路由 — 等待回复 / LLM 操作时也能中断。 - broker 加 request_cancel / is_cancelled / clear_cancel(per-run threading.Event) - AgentLoop 加 cancel_check 回调,每轮 LLM 前 + tool_calls 之间 poll;命中给 未执行 tool_call 补 [cancelled by user] tool result 保 LiteLLM 协议,emit cancelled event - 单活 gate + 启动 reaper 扩到 running | cancelling - BG 装 cancel_check + 终态判 cancelled/ok + finally clear flag - dev SPA stop 按钮 + cancelled badge + fetchSse try/finally 失败路径复原 UI LLM 同步 call 本身不可中断,最坏等当前一轮跑完(通常几十秒)。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| config | ||
| core | ||
| db/migrations | ||
| prompts/system | ||
| skills | ||
| tools | ||
| web | ||
| .gitignore | ||
| CLAUDE.md | ||
| DESIGN.md | ||
| PROGRESS.md | ||
| RUN.md | ||
| alembic.ini | ||
| cli.py | ||
| main.py | ||
| requirements.txt | ||