hermes-agent/apps
Brooklyn Nicholson 1a3b220651 fix(desktop-terminal): reopen terminal tabs in the last-used directory
A reopened tab restarted the shell in its original launch dir, so the fresh
prompt showed the wrong folder after a prior `cd` (the issue's "separate
thing" note). Track the shell's working directory and restart the PTY there.

Two independent signals feed a persisted per-tab restoreCwd:
- a main-side PTY cwd probe (shell-agnostic; /proc on Linux, lsof on macOS;
  Windows has no cheap per-process query so it falls back to the launch dir)
- cwd-reporting OSC sequences parsed in the renderer (OSC 7 file URIs, OSC 9;9
  ConEmu/Windows-Terminal paths) for shells configured to emit them

On relaunch the fresh shell boots in restoreCwd, falling back to the launch
cwd (then home) when it no longer exists.
2026-07-12 02:49:26 -04:00
..
bootstrap-installer feat(desktop): ts-ify everything 2026-07-08 16:24:16 -07:00
desktop fix(desktop-terminal): reopen terminal tabs in the last-used directory 2026-07-12 02:49:26 -04:00
shared style(shared): apply workspace formatter to websocket helpers 2026-06-28 21:30:43 -05:00