hermes-agent/ui-tui/src/components
Brooklyn Nicholson df5ca5065f feat(tui): replace /clear double-press gate with a proper confirm overlay
The time-window gate felt wrong — users would hit /clear, read the
prompt, retype, and consistently blow past the window. Swapping to a
real yes/no overlay that blocks input like the existing Approval and
Clarify prompts.

- add ConfirmReq type + OverlayState.confirm + $isBlocked coverage
- ConfirmPrompt component (prompts.tsx): cancel row on top as the
  default, danger-coloured confirm row on the bottom, Y/N hotkeys,
  Enter on default = cancel, Esc/Ctrl+C cancel
- wire into PromptZone (appOverlays.tsx)
- /clear + /new now push onto the overlay instead of arming a timer
- HERMES_TUI_NO_CONFIRM=1 still skips the prompt for scripting
- drop the destructiveGate + createSlashHandler reset wiring
  (destructive.ts and its tests removed)

Refs #4069.
2026-04-18 18:04:08 -05:00
..
appChrome.tsx feat(tui): honor display.* flags in turn renderer, status bar, and event handler 2026-04-18 09:42:57 -05:00
appLayout.tsx feat(tui): honor display.* flags in turn renderer, status bar, and event handler 2026-04-18 09:42:57 -05:00
appOverlays.tsx feat(tui): replace /clear double-press gate with a proper confirm overlay 2026-04-18 18:04:08 -05:00
branding.tsx feat(tui): render per-MCP-server status block in SessionPanel 2026-04-18 09:42:57 -05:00
markdown.tsx fix(tui): wrap markdown links in Link so Ghostty/iTerm/kitty get real OSC 8 hyperlinks 2026-04-18 14:39:24 -05:00
maskedPrompt.tsx refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
messageLine.tsx chore: uptick 2026-04-18 15:17:42 -05:00
modelPicker.tsx fix(tui): stable React keys in /model picker rows 2026-04-18 17:47:26 -05:00
prompts.tsx feat(tui): replace /clear double-press gate with a proper confirm overlay 2026-04-18 18:04:08 -05:00
queuedMessages.tsx refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
sessionPicker.tsx refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
skillsHub.tsx fix(tui): route /skills subcommands through skills.manage instead of curses slash.exec 2026-04-18 09:46:36 -05:00
textInput.tsx fix(tui): Ctrl+C with input selection actually preserves input (lift handler to app level) 2026-04-18 16:28:51 -05:00
themed.tsx refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
thinking.tsx fix(tui): approval flow + input ergonomics + selection perf 2026-04-17 10:37:48 -05:00