Session rename dialog: Enter commits but doesn't dismiss the popup

Resolved 💬 1 comment Opened May 9, 2026 by grademaster Closed Jun 7, 2026

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

  1. Type /rename in a session.
  2. Edit the new label.
  3. Press Enter.
  4. Label updates… but the popup stays open.
  5. 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).

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗