hermes-agent-features/ui-tui/src
Brooklyn Nicholson 75377feb07 fix(tui): make /clear confirm window humane (3s → 30s, reset on other slash)
The 3s gate was too tight — users reading the prompt and retyping
consistently blow past it and get stuck in a loop ("press /clear
again within 3s" forever). Fixes:

- bump CONFIRM_WINDOW_MS 3_000 → 30_000
- drop the time number from the confirmation message to remove the
  pressure vibe: "press /clear again to confirm — starts a new session"
- reset the gate from createSlashHandler whenever any non-destructive
  slash command runs, so stale arming from 20s ago can't silently
  turn the next /clear into an unintended confirm
- export the gate + isDestructiveCommand helper for that wiring
- add armed() introspection method

Follow-up to #4069 / 3366714b.
2026-04-18 17:55:53 -05:00
..
__tests__ fix(tui): make /clear confirm window humane (3s → 30s, reset on other slash) 2026-04-18 17:55:53 -05:00
app fix(tui): make /clear confirm window humane (3s → 30s, reset on other slash) 2026-04-18 17:55:53 -05:00
components fix(tui): stable React keys in /model picker rows 2026-04-18 17:47:26 -05:00
config feat(tui): double-press confirm on /clear and /new 2026-04-18 17:48:34 -05:00
content feat(tui): /model and /setup slash commands with in-place CLI handoff 2026-04-17 10:58:18 -05:00
domain fix(tui): make /clear confirm window humane (3s → 30s, reset on other slash) 2026-04-18 17:55:53 -05:00
hooks feat(tui): append git branch to cwd label in status bar 2026-04-18 17:17:05 -05:00
lib Merge branch 'main' of github.com:NousResearch/hermes-agent into bb/tui-audit-followup 2026-04-18 14:52:54 -05:00
protocol refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
types Merge branch 'main' of github.com:NousResearch/hermes-agent into bb/tui-audit-followup 2026-04-18 14:52:54 -05:00
app.tsx refactor(tui): store-driven turn state + slash registry + module split 2026-04-16 12:34:45 -05:00
banner.ts refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
bootBanner.ts chore: fmt 2026-04-16 21:09:50 -05:00
entry.tsx chore(tui): strip noise comments 2026-04-16 19:14:05 -05:00
gatewayClient.ts refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
gatewayTypes.ts Merge branch 'main' of github.com:NousResearch/hermes-agent into bb/tui-audit-followup 2026-04-18 14:52:54 -05:00
theme.ts feat(tui): add LIGHT_THEME preset for white/light terminal backgrounds 2026-04-18 17:49:40 -05:00
types.ts feat(tui): render per-MCP-server status block in SessionPanel 2026-04-18 09:42:57 -05:00