fix(tui): align Ctrl+L and /model with classic CLI semantics

Make Ctrl+L non-destructive by redrawing the current screen state instead of starting a new session, and stop auto-appending --global for typed /model commands so session scope remains the default unless explicitly requested.
This commit is contained in:
Brooklyn Nicholson 2026-04-27 12:23:56 -05:00
parent d5a89283b7
commit 4909b94f99
5 changed files with 11 additions and 19 deletions

View file

@ -26,6 +26,11 @@ describe('constants', () => {
})
})
it('documents Ctrl/Cmd+L as non-destructive redraw', () => {
expect(HOTKEYS.some(([, d]) => d === 'redraw / repaint')).toBe(true)
expect(HOTKEYS.some(([, d]) => d.includes('new session'))).toBe(false)
})
it('TOOL_VERBS maps known tools (verb-only, no emoji)', () => {
expect(TOOL_VERBS.terminal).toBe('terminal')
expect(TOOL_VERBS.read_file).toBe('reading')