[BUG] Ctrl+O transcript toggle clears “add details” text at file edit approval prompt
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?
When Claude Code asks for confirmation to make an edit to a file, you can press Tab to enter more details (with prompt “Yes, and tell Claude what to do next”). If you type any details and then toggle transcript/expanded view with Ctrl+O (expand) and Ctrl+O again (compress), the typed details are cleared/lost.
This is frustrating because Ctrl+O is easy to hit while reviewing context (often to check the thought trace or tool output), and the further instruction that could have many points to it is gone.
What Should Happen?
The text typed in the add-details mode should be preserved across UI view toggles (Ctrl+O expand/compress).
Error Messages/Logs
No error message is shown. The UI simply returns to the compressed view with the add-details text missing.
Steps to Reproduce
Example prompt on tool call (before Tab):
Do you want to make this edit to <file>?
❯ 1. Yes
- Yes, allow all edits during this session (shift+tab)
- No
After pressing Tab:
Do you want to make this edit to test_original_language_reliability.py?
❯ 1. Yes, and tell Claude what to do next
- Yes, allow all edits during this session (shift+tab)
- No
Repro steps:
- Type a prompt that triggers a tool call approval prompt (e.g., a change that requires permission to edit a file).
- Press Tab to enter add-details mode.
- Type some details.
- Press Ctrl+O to toggle to expanded/transcript view.
- Press Ctrl+O again to return to compressed view.
- Check the prompt: the details typed in step 4 are gone.
Expected: details remain intact after step 6.
Actual: details are cleared after step 6.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.31
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
Additional Information
I searched for existing Ctrl+O and transcript-view related issues but didn’t find one describing loss of “add details” text specifically at the approval gate when toggling expanded/compressed view with Ctrl+O.
This looks like a TUI state reset: the transcript toggle appears to re-render the prompt and drops the current input buffer for the add-details field.
If there’s a debug flag or logs you’d like, tell me what to run and I can attach them.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗