mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-16 14:32:34 +00:00
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. |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||