Session rename dialog: Enter commits but doesn't dismiss the popup
Summary
When using /rename (or whichever keybinding opens the edit-session-name dialog), pressing Enter commits the new label but leaves the popup on screen. A second keystroke (Esc) is required to dismiss it. In every other modal-text-input UX I've used, Enter both commits and closes — that's the expected behavior here.
Current behavior
- Type
/renamein a session. - Edit the new label.
- Press Enter.
- Label updates… but the popup stays open.
- Have to press Esc to close.
Expected behavior
Enter both commits the rename and dismisses the popup. Single keystroke.
Why it matters
Renaming sessions is a frequent operation when working across many parallel sessions. The double-keystroke isn't a deal-breaker, but it interrupts flow — especially for users who manage many concurrently-running Claude Code sessions and rename them often to track scope.
Environment
- macOS, Claude Code 2.1.x (current as of 2026-05-09)
- Interactive terminal session
Workaround
None via ~/.claude/keybindings.json — the rename dialog isn't exposed to the keybinding system. Esc-after-Enter is the only way today.
Suggested fix
Treat Enter inside the rename input the same way Enter is treated in other "submit" contexts in the TUI: commit and dismiss in one action. If a confirmation step is needed, surface it as a non-modal toast (the same pattern the rename-confirmation toast already uses).
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗