[BUG] Permission prompt: option 2 requires extra Enter to apply, option 1 works instantly
Description
Two bugs in the permission prompt selector (the numbered options when confirming tool actions):
Bug 1: Option 2 requires extra Enter key to apply
When the permission prompt appears with options like:
1. Yes
2. Yes, allow all edits during this session (shift+tab)
3. No
Option 1 works correctly — selecting it immediately applies the choice.
Option 2 does NOT apply on selection. Instead, it moves the cursor to "2" and moves it to the end of the line, but nothing happens. You must then press Enter separately to actually apply the choice. This is a regression — previously all options applied immediately on selection.
This makes option 2 effectively require two actions (select + Enter) while option 1 requires one (select). In fast terminal workflow, this means option 2 often doesn't register because you've already moved on.
Bug 2: "Allow all during session" / "Don't ask again" doesn't persist
This is already reported in #17894 but compounds the problem above. Even when you successfully apply option 2 (with the extra Enter), the permission is not remembered — the same prompt appears again for the next identical action.
The net effect: option 2 is completely broken. It requires extra input to select AND doesn't work when selected. Option 1 is the only functional choice, making the permission system effectively single-option.
Steps to Reproduce
- Start Claude Code session
- Ask it to edit a file
- Permission prompt appears with numbered options
- Try selecting option 2 (via keyboard number or shift+tab)
- Observe: cursor moves but choice is not applied
- Press Enter — now it applies
- Ask for another edit
- Same permission prompt appears again (option 2 wasn't remembered)
Expected Behavior
- Option 2 should apply immediately on selection (same as option 1)
- If "allow all during session" is selected, subsequent identical actions should not prompt again
Actual Behavior
- Option 2 needs select + Enter (two actions)
- Option 1 needs only select (one action)
- "Allow all" doesn't persist regardless (see #17894)
Environment
- Claude Code CLI (latest versions)
- Linux terminal (bash)
- Regression from earlier versions where all options applied on selection
Related
- #17894 — "Allow all edits during this session" doesn't persist
- #16735 — "Don't ask again" doesn't persist to settings.json
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗