Problem
The [s][n] (session new) and [s][c] (session clear) commands implicitly exit command mode by calling commandMode.exit(). Other commands do not exit command mode.
This inconsistency breaks muscle memory. The user expects to exit command mode with Ctrl+/ after any command, but because some commands exit implicitly, the closing Ctrl+/ re-enters command mode instead.
Example sequence:
Ctrl+/ — enter command mode
[s] — enter session context
[c] — clear session (implicitly exits command mode)
Ctrl+/ — user expects to exit, but actually re-enters command mode
Expected Behaviour
Command mode should only exit via explicit user action (Ctrl+/ or Escape). No command should implicitly exit command mode.
Location
src/ClaudeCli.ts — session-clear and session-new action handlers call commandMode.exit()
Problem
The
[s][n](session new) and[s][c](session clear) commands implicitly exit command mode by callingcommandMode.exit(). Other commands do not exit command mode.This inconsistency breaks muscle memory. The user expects to exit command mode with
Ctrl+/after any command, but because some commands exit implicitly, the closingCtrl+/re-enters command mode instead.Example sequence:
Ctrl+/— enter command mode[s]— enter session context[c]— clear session (implicitly exits command mode)Ctrl+/— user expects to exit, but actually re-enters command modeExpected Behaviour
Command mode should only exit via explicit user action (
Ctrl+/orEscape). No command should implicitly exit command mode.Location
src/ClaudeCli.ts—session-clearandsession-newaction handlers callcommandMode.exit()