hermes-agent/tui_gateway
Teknium 8babfe95b4 fix(gateway): only follow settles into same-repo worktrees; never override an explicit cwd
Builds on #72787's current_root guard (cherry-picked with authorship
preserved). Two further hardenings for #72776:

- require the settled cwd and the workspace to share the same common .git
  dir (the shape 'git worktree add' produces), so a git workspace visiting
  an UNRELATED repo is a browsing visit, not a re-home (repro'd by
  Johnny-xuan in the issue thread);
- never reconcile over an explicitly chosen workspace (explicit_cwd),
  while a settle-adopted cwd stays followable via a cwd_from_settle
  marker cleared by _set_session_cwd / project switch.

Fixes #72776
2026-08-01 10:51:30 -07:00
..
__init__.py
_stdin_recovery.py
compute_host.py fix(tui): preserve queued image ownership 2026-08-01 15:58:42 +05:30
entry.py
event_publisher.py
git_probe.py
host_supervisor.py
loop_noise.py
method_ctx.py
methods_complete.py feat(tui): rank the slash menu by the skills you actually use 2026-08-01 01:17:41 -05:00
methods_config.py fix(tui): rebind extracted config handler to shared indicator constants 2026-07-31 22:33:16 -07:00
methods_prompt.py fix(gateway): fail prompt.submit when session storage hits a full disk 2026-08-01 00:27:17 -05:00
methods_session.py fix(tui): preserve queued image ownership 2026-08-01 15:58:42 +05:30
methods_tools.py
project_tree.py
render.py
server.py fix(gateway): only follow settles into same-repo worktrees; never override an explicit cwd 2026-08-01 10:51:30 -07:00
slash_worker.py
synthetic_turn.py
transport.py
turn_marker.py
ws.py