[BUG] claude agents view: dispatch prompt has no undo (chat:undo), unlike the main REPL
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 the claude agents background-agent view, the dispatch prompt ignores undo. You type a prompt to start a background session, edit part of it, press undo, and nothing changes. In a normal claude session that same edit is undoable: chat:undo is bound to <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>-</kbd> and reverts the last change. The agent-view prompt behaves as if chat:undo was never wired up, and it doesn't pick up the Chat keybindings either. Setting chat:undo in ~/.claude/keybindings.json doesn't help, because that only affects the Chat context and the agent-view prompt doesn't read it.
What Should Happen?
Undo in the agent-view dispatch prompt should revert the last edit, the same way it does in the main prompt.
Error Messages/Logs
None. No error is produced; the keypress is silently ignored.
Steps to Reproduce
- Run
claude agentsto open the background-agent view. - Type into the dispatch prompt, then delete or change part of what you typed.
- Press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>-</kbd> (or your
chat:undobinding).
Claude Model
Not sure / Multiple models
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.211 (Claude Code)
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗