M9: lens block, ctrl-p picker, /resume, wide panel #85

Merged
hermes merged 1 commits from m9-rest into main 2026-10-01 09:17:14 +00:00
Collaborator

TUI revamp, part 2.

  • Lens block (#78): new Event::Injected(Vec<String>) emitted by the agent whenever hooks inject text at turn/agent end. TUI renders it as ┄ lens ┄ with one ✓/✗ summary line per report (+ error/warning counts for diagnostics), first 4 lines collapsed, ctrl-o for all. --mode json/rpc carry it as {"type":"injected","texts":[...]}. Generic over hooks, so the lens crate didn't change; independent of #66.
  • Picker (#82): ctrl-p modal over commands, skills, MCP prompts, models and recent sessions (first prompt as detail). Enter runs / inserts; sessions resume via new /resume <path>.
  • Wide layout (#83): at ≥140 cols /help, /skills, /lsp, /mcp open in a right panel; esc closes.

Verified: tests/all.sh green (71 unit tests, all e2e incl. lens_e2e asserting the injected event, tui smoke incl. picker resuming a seeded session), plus pty render of the lens block.

Closes #78, closes #82, closes #83

TUI revamp, part 2. - **Lens block (#78)**: new `Event::Injected(Vec<String>)` emitted by the agent whenever hooks inject text at turn/agent end. TUI renders it as `┄ lens ┄` with one ✓/✗ summary line per report (+ error/warning counts for diagnostics), first 4 lines collapsed, `ctrl-o` for all. `--mode json`/rpc carry it as `{"type":"injected","texts":[...]}`. Generic over hooks, so the lens crate didn't change; independent of #66. - **Picker (#82)**: `ctrl-p` modal over commands, skills, MCP prompts, models and recent sessions (first prompt as detail). Enter runs / inserts; sessions resume via new `/resume <path>`. - **Wide layout (#83)**: at ≥140 cols `/help`, `/skills`, `/lsp`, `/mcp` open in a right panel; `esc` closes. Verified: `tests/all.sh` green (71 unit tests, all e2e incl. lens_e2e asserting the injected event, tui smoke incl. picker resuming a seeded session), plus pty render of the lens block. Closes #78, closes #82, closes #83
hermes added 1 commit 2026-10-01 09:17:12 +00:00
M9: lens block, ctrl-p picker, /resume, wide side panel
ci / check (pull_request) Canceled after 0s
ci / check (push) Canceled after 0s
d7aeaf0bb9
Closes #78, closes #82, closes #83
hermes merged commit 1e87857a34 into main 2026-10-01 09:17:14 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#85