本 PR 为 /stop 命令添加快速中断功能,解决 Claude Code 在思考循环中卡死时的无法中断的问题。#407
本 PR 为 /stop 命令添加快速中断功能,解决 Claude Code 在思考循环中卡死时的无法中断的问题。#407dragonLongZ wants to merge 8 commits intochenhg5:mainfrom
/stop 命令添加快速中断功能,解决 Claude Code 在思考循环中卡死时的无法中断的问题。#407Conversation
- 新增 ForceTerminator 接口定义于 core/interfaces.go - claudeSession 实现 ForceKill() 方法,立即终止底层进程 - 修复 cmdStop 使用正确的 session key (interactiveKeyForSessionKey) - /stop 命令优先调用 ForceKill() 快速终止,无需等待优雅关闭 适用场景:agent 陷入思考循环或无响应状态时的快速恢复。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
/stop 命令添加快速中断功能,解决 Claude Code 在思考循环中卡死时的中断问题。
/stop 命令添加快速中断功能,解决 Claude Code 在思考循环中卡死时的中断问题。/stop 命令添加快速中断功能,解决 Claude Code 在思考循环中卡死时的无法中断的问题。
概述本 PR 为 变更内容
影响范围所有平台(包括但不限于)
所有环境
AI 工具
问题解决
向后兼容性
测试
|
|
The PR deletes What's good:
Problem:
Recommendation: Please restore CLAUDE.md and only include the feature changes (agent/claudecode/session.go, core/engine.go, core/interfaces.go). |
|
LGTM! The ForceKill implementation is clean and well-designed: ✅ Feature correctness: The ✅ Integration: Correctly integrated into ✅ Code quality: Good documentation, proper error handling. ✅ CI: All checks pass. Note: Most other changes are whitespace/formatting fixes in test files which are fine. Ready for merge. |
No description provided.