Merge pull request #722: fix: don't point the Ralph @fix_plan.md watcher at a remote session's directory

This commit is contained in:
Codeman maintainer committed 2026-10-28 09:10:05 +01:00
commit 66528962ee
3 files changed
+119 -2

No files matched your search

+4 -2
View File
@@ -2062,8 +2062,10 @@ export class WebServer extends EventEmitter {
this.runSummaryTrackers.set(session.id, summaryTracker);
summaryTracker.recordSessionStarted(session.mode, session.workingDir);
// Set working directory for Ralph tracker to auto-load @fix_plan.md (not supported for external CLIs)
if (!isExternalCliMode(session.mode)) {
// Set working directory for Ralph tracker to auto-load @fix_plan.md (not supported for external CLIs).
// A remote session's workingDir is a path on the remote host, and the watcher reads and
// fs.watch()es it on the LOCAL disk, so it is skipped there too.
if (!isExternalCliMode(session.mode) && !session.remote) {
session.ralphTracker.setWorkingDir(session.workingDir);
}