Files
hermes-agent/tui_gateway
kshitijk4poor a0fe806c46 fix(tui): ssh cwd shape and ~ everywhere; named ssh never inherits the launch cwd
Round-4 pre-arm review warnings (ssh-only gaps, no local/docker change):

- A named ssh profile's cwd chain falls back to "~" before the launch
  profile's host cwd, so a fresh or resumed TUI/dashboard session never
  runs the remote shell in a host path.
- An ssh launch profile keeps a "~"/"~/x" cwd remote in session.create /
  _completion_cwd (before main's host fast path), matching session.cwd.set
  and workspace.move.
- One _is_remote_cwd_shape (reusing _is_ssh_remote_tilde_cwd) gates every
  remote path: session.create no longer marks a relative remote path
  explicit, and _completion_cwd returns the profile's own cwd (or ~) for
  one, matching _workspace_cwd's rejection.

Live A/B over 6 launch modes x 7 profiles x 7 cwd shapes: every local,
docker and backendless cell is identical to origin/main.
2026-09-26 21:40:44 +05:30
..
…
…
…