hermes-agent/apps/desktop/src/lib
alt-glitch 2bd9c9b881 opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine
hermes --tui launches the native OpenTUI engine (Bun) when
HERMES_TUI_ENGINE=opentui (env) or display.tui_engine=opentui (config);
Ink stays the default and the shipping path is untouched.

- _resolve_tui_engine() (env > config > ink); refuses opentui on
  Windows/Termux (no Bun) -> falls back to ink with a notice.
- _make_opentui_argv() -> [bun, src/entry.real.tsx] (no build step).
- _bun_bin() with HERMES_BUN override.
- Branch at top of _make_tui_argv BEFORE _ensure_tui_node (Bun-only host
  must not bootstrap Node).
- Gate _launch_tui NODE_OPTIONS/--max-old-space-size on engine==ink (Bun
  is JSC; the V8 flag errors/ignores).

Verified end-to-end via tmux: real hermes --tui -> Bun -> OpenTUI ->
real Python gateway streamed a real reply. No-flag default still ink.
2026-06-08 11:11:54 +00:00
..
keybinds opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
ansi.test.ts fix(desktop): triage batch of GUI quality-of-life fixes (#37536) 2026-06-02 16:33:22 -04:00
ansi.ts opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
chat-messages.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
chat-messages.ts opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
chat-runtime.test.ts opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
chat-runtime.ts opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
clipboard.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
commit-changelog.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
commit-changelog.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
desktop-slash-commands.test.ts opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
desktop-slash-commands.ts opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
embedded-images.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
embedded-images.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
external-link.test.tsx opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
external-link.tsx opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
gateway-events.ts opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
gateway-ws-url.test.ts fix(desktop): don't fall back to a dead WS ticket on OAuth re-mint failure 2026-06-04 01:11:34 -07:00
gateway-ws-url.ts feat(desktop): per-session profile switching + cross-profile sessions 2026-06-04 16:35:34 -05:00
haptics.ts feat(desktop): drag sessions into chat as @session links + spawn loader 2026-06-04 19:41:51 -05:00
icons.ts feat(desktop): steer the live run from the composer 2026-06-05 20:50:30 -05:00
incremental-external-store-runtime.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
katex-memo.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
local-preview.ts opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
markdown-code.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
markdown-code.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
markdown-preprocess.ts fix(desktop): stop bare-URL autolinker swallowing trailing emphasis asterisks (#41093) 2026-06-07 02:47:39 -07:00
media.remote.test.ts feat(desktop+gateway): remote media relay — attach images/PDFs and display gateway images over the network 2026-06-07 10:05:53 -07:00
media.ts feat(desktop+gateway): remote media relay — attach images/PDFs and display gateway images over the network 2026-06-07 10:05:53 -07:00
model-status-label.test.ts opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
model-status-label.ts feat(desktop): inline model picker in the status bar 2026-06-02 19:09:41 -05:00
mutable-ref.ts chore(desktop): zero eslint/typecheck debt + prettier pass (#39100) 2026-06-04 14:10:38 +00:00
preview-targets.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
preview-targets.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
profile-color.ts feat(desktop): long-press a rail profile to pick its color 2026-06-04 20:12:37 -05:00
provider-setup-errors.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
provider-setup-errors.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
query-client.ts feat(desktop): per-session profile switching + cross-profile sessions 2026-06-04 16:35:34 -05:00
runtime-readiness.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
runtime-readiness.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
session-export.ts opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
session-search.test.ts Show platform sources in desktop sessions 2026-06-07 23:44:04 -07:00
session-search.ts Show platform sources in desktop sessions 2026-06-07 23:44:04 -07:00
session-source.ts opentui(phase3): launcher integration — HERMES_TUI_ENGINE dual-engine 2026-06-08 11:11:54 +00:00
speech-text.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
statusbar.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
storage.ts feat(desktop): long-press a rail profile to pick its color 2026-06-04 20:12:37 -05:00
todos.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
todos.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
tool-result-summary.test.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
tool-result-summary.ts fix(desktop): triage batch of GUI quality-of-life fixes (#37536) 2026-06-02 16:33:22 -04:00
use-enter-animation.ts fix(desktop): prevent IME Enter from splitting messages and viewport resize from disarming scroll anchor (#38333) 2026-06-03 20:14:52 +00:00
utils.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
voice-playback.ts Add Hermes desktop app (#20059) 2026-05-31 17:46:56 -05:00
yolo-session.ts feat(desktop): Shift+click the status-bar zap to toggle YOLO globally (#41666) 2026-06-07 20:57:08 -05:00