Metadata
| Status | done |
|---|---|
| Assigned | agent-765 |
| Agent identity | f51439356729d112a6c404803d88015d5b44832c6c584c62b96732b63c2b0c7e |
| Model | claude:sonnet |
| Created | 2026-04-27T15:59:41.795619113+00:00 |
| Started | 2026-04-27T17:02:05.411433621+00:00 |
| Completed | 2026-04-27T17:32:55.353660980+00:00 |
| Tags | tui,chat-redesign, eval-scheduled |
Description
Description
Wire up command-mode single-key bindings, which only fire when the TUI is out of PTY focus (see impl-tui-modal).
Bindings:
- 'n' — new chat (replaces top-level Ctrl+N)
- 'w' — close current tab (remove from active list, NON-destructive — see impl-tui-tabs-as-view for semantics)
- '0'..'9' — jump to tab N
- Left/Right arrow — cycle tabs prev/next
- '?' — show keybinding help overlay
Do NOT bind keys that conflict with existing command-mode features the user uses (e.g. if 'i' currently changes inspector width, leave it alone — note in research-tui-chat report).
Status bar should show available bindings briefly when entering command mode, or render a small hint line.
Validation
- Failing test first: pressing 'n' in command mode dispatches new-chat action
- 'w' triggers close-tab (verify via close action emitted, not actual archive)
- Number keys switch tabs
- '?' opens help overlay listing all command-mode bindings
- In PTY mode, none of these keys trigger TUI actions (covered by impl-tui-modal tests, but re-verify)
- cargo build + cargo test pass
- Live-smoke: launch TUI, Ctrl+T, press 'n', verify new chat tab appears
Depends on
Required by
- (none)
Log
- 2026-04-27T15:59:41.788400363+00:00 Task paused
- 2026-04-27T16:02:44.703168810+00:00 Task published
- 2026-04-27T17:02:05.411436346+00:00 Spawned by coordinator --executor claude --model sonnet
- 2026-04-27T17:02:17.935505700+00:00 Starting implementation: TUI command-mode keybindings (n/w/0-9)
- 2026-04-27T17:24:39.106385361+00:00 Implementation complete: n=new-chat, w=close-tab, 0-9=tab-jump, Left/Right already worked, ?=help. 8 new tests pass. help overlay and status bar hints updated.
- 2026-04-27T17:27:57.766455392+00:00 cargo install complete, binary updated. Running live smoke tests...
- 2026-04-27T17:32:17.954929765+00:00 Validated: all acceptance criteria met — 'n' opens launcher (no-search) or next_match (search), 'w' closes tab in Normal mode, Left/Right cycles tabs in RightPanel+Chat mode, 1-9 jump tabs via try_chat_tab_navigation, '?' shows help overlay, help overlay + status bar hints updated. 119 event tests pass.
- 2026-04-27T17:32:40.330654004+00:00 Committed: 2529a880a — pushed to remote
- 2026-04-27T17:32:55.353668113+00:00 Task pending eval (agent reported done; awaiting `.evaluate-*` to score)
- 2026-04-27T17:36:13.234195082+00:00 PendingEval → Done (evaluator passed; downstream unblocks)