[BUG] 双击 ESC 回滚会话后,Task 列表未清理
Resolved 💬 2 comments Opened May 26, 2026 by Greenplumwine Closed May 29, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
当用户在会话中使用 TaskCreate 创建了 task 后,若通过双击 ESC 回滚/撤销会话,task 列表中已创建的任务不会被清理,导致残留。
What Should Happen?
回滚会话后,该会话创建的 task 应一并被清理。
Error Messages/Logs
Steps to Reproduce
- 在会话中创建 task:TaskCreate({subject: "test", description: "test"})
- 双击 ESC 回滚会话
- 检查 task 列表:TaskList → 之前的 task 仍然存在
Claude Model
Other
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.150
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗