hermes-agent/ui-tui/src
Teknium c39b2b50ee
fix(tui): stop a cwd package named utils/proxy/ui from crashing the gateway child (#51693)
Launching Hermes from a directory that ships its own top-level package with a
Hermes-internal name (utils/, proxy/, ui/) crashed the gateway/TUI child with
an ImportError (exit 1, crash loop): from utils import atomic_replace resolved
to the user's package.

tui_gateway/entry.py already stripped the relative cwd forms ('' / '.'), but
the launch dir also reaches sys.path as its own ABSOLUTE path (venv activation
or a project that adds itself to PYTHONPATH), which the strip missed and which
sat ahead of the Hermes root.

Centralize a hardened guard in hermes_bootstrap.harden_import_path(): drop the
relative forms AND force the Hermes source root to the front even when an
absolute cwd entry is present. Wire it into tui_gateway/entry.py and
acp_adapter/entry.py (both spawn into arbitrary cwds); hermes_cli/main.py and
gateway/run.py already insert the root at front. gatewayClient.ts now also
exports HERMES_PYTHON_SRC_ROOT for defense in depth.
2026-06-23 23:29:45 -07:00
..
__tests__ Merge remote-tracking branch 'origin/main' into bb/pets-merge 2026-06-23 19:05:22 -05:00
app Merge remote-tracking branch 'origin/main' into bb/pets 2026-06-22 05:25:49 -05:00
components Merge remote-tracking branch 'origin/main' into bb/pets-merge 2026-06-23 19:05:22 -05:00
config fix(tui): restart dashboard chat on idle exit hotkeys 2026-06-19 12:02:22 +05:30
content feat: add TUI session orchestrator 2026-05-26 20:51:59 -07:00
domain fix(tui): don't make Enter swallow trailing-space-only slash completions (#48425) 2026-06-18 11:04:59 -05:00
hooks fix(tui): recompute virtual tail after width resize 2026-05-23 14:49:26 -05:00
lib fix(tui): restart dashboard chat on idle exit hotkeys 2026-06-19 12:02:22 +05:30
protocol refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
types feat(pets): TUI pet pane, picker + gateway RPCs 2026-06-20 14:18:36 -05:00
app.tsx fix(tui): apply ui-tui fix pass and restore type-check 2026-04-25 14:08:54 -05:00
banner.ts feat(tui): responsive banner tiers 2026-05-23 17:37:51 -05:00
entry.tsx fix(tui): restart dashboard chat on idle exit hotkeys 2026-06-19 12:02:22 +05:30
gatewayClient.ts fix(tui): stop a cwd package named utils/proxy/ui from crashing the gateway child (#51693) 2026-06-23 23:29:45 -07:00
gatewayTypes.ts feat(tui): track background subagents in the status bar (#51485) 2026-06-23 11:32:00 -07:00
theme.ts fix(tui): honor skin highlight colors (#20895) 2026-05-06 14:01:56 -07:00
types.ts feat(tui): track background subagents in the status bar (#51485) 2026-06-23 11:32:00 -07:00