hermes-agent/ui-tui/src
Brooklyn Nicholson 2d693c865c perf(tui): spawn python gateway before loading @hermes/ink
Before: entry.tsx imports @hermes/ink (394KB bundle) + App + GatewayClient
in declaration order, then calls `gw.start()` at ~T=220ms. Python fork +
server.py import starts then.

After: only `GatewayClient` is statically imported (5ms, node builtins
only). `gw.start()` fires at ~T=5ms. @hermes/ink + App load in parallel
via `Promise.all(import(...))`. Python gets ~215ms of free runway to do
its own module import before node even finishes loading.

Net: session.info arrives ~150ms earlier in cold start. First React frame
timing is unchanged (still ~240ms — still gated by ink+app imports).

Removed a previously-tried warm-thread in server.py that pre-imported
`run_agent` in the background. Measured variance showed occasional
5-10s outliers (GIL thrashing); median gain was <100ms. Not worth the
non-determinism.
2026-04-16 15:21:49 -05:00
..
__tests__ refactor(tui): store-driven turn state + slash registry + module split 2026-04-16 12:34:45 -05:00
app feat(tui): queue pre-session input, auto-flush when session lands 2026-04-16 15:04:18 -05:00
components perf(tui): paint banner on first frame, don't wait on session.create 2026-04-16 14:58:12 -05:00
config refactor(tui): store-driven turn state + slash registry + module split 2026-04-16 12:34:45 -05:00
content refactor(tui): store-driven turn state + slash registry + module split 2026-04-16 12:34:45 -05:00
domain refactor(tui): store-driven turn state + slash registry + module split 2026-04-16 12:34:45 -05:00
hooks chore: uptick 2026-04-15 23:29:00 -05:00
lib refactor(tui): store-driven turn state + slash registry + module split 2026-04-16 12:34:45 -05:00
protocol refactor(tui): store-driven turn state + slash registry + module split 2026-04-16 12:34:45 -05:00
types fix: scrolling while selecting 2026-04-14 12:50:22 -05:00
app.tsx refactor(tui): store-driven turn state + slash registry + module split 2026-04-16 12:34:45 -05:00
banner.ts feat: add skin logo support 2026-04-07 23:59:11 -04:00
entry.tsx perf(tui): spawn python gateway before loading @hermes/ink 2026-04-16 15:21:49 -05:00
gatewayClient.ts feat: just more cleaning 2026-04-15 14:14:01 -05:00
gatewayTypes.ts chore: uptick 2026-04-16 14:48:29 -05:00
theme.ts feat: change to $ when in ! mode 2026-04-15 16:34:58 -05:00
types.ts feat: just more cleaning 2026-04-15 14:14:01 -05:00