[BUG] Agent view: Ctrl+X delete on Completed sessions doesn't persist — rows reappear at bottom of Completed; sessions double-rendered (2.1.204)
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?
In agent view (claude agents), pressing Ctrl+X twice on a stopped/completed session removes the row momentarily, but it reappears at the bottom of the Completed group on the next render. There is no way to shrink the Completed list from the TUI. This worked correctly on a prior version and regressed after an auto-update.
Additionally, the same session is rendered more than once in a single frame (e.g. clearpath robotiq gripper addition, drp_deploy to tianji jetson, and new clearpath datagen pipelines each appear twice), and the row count in the view substantially exceeds the number of jobs on disk. This points to agent view enumerating sessions from multiple stores without de-duplication, and the delete only clearing one representation while another store re-derives the row.
The trigger appears to be a daemon restart from a mid-session auto-update: claude daemon status reported one background worker "from a different CLI version" immediately before all historical sessions flooded into the view.
What Should Happen?
Ctrl+X twice on a session removes it from agent view and it stays removed (transcript retained on disk for claude --resume, per the documented behavior). Each session renders exactly once.
Error Messages/Logs
Steps to Reproduce
Run claude agents in the linux terminal and try to delete an existing session using ctrl+x (twice)
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.204
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗