Merge pull request #727: fix: don't point the image watcher at a remote session's directory

This commit is contained in:
Codeman maintainer committed 2026-10-28 09:10:06 +01:00
commit 9fec26009f
6 files changed
+217 -8

No files matched your search

+4 -2
View File
@@ -2069,8 +2069,10 @@ export class WebServer extends EventEmitter {
session.ralphTracker.setWorkingDir(session.workingDir);
}
// Start watching for new images in this session's working directory (if enabled globally and per-session)
if ((await this.isImageWatcherEnabled()) && session.imageWatcherEnabled) {
// Start watching for new images in this session's working directory (if enabled globally and per-session).
// A remote session's workingDir is a path on the remote host, and the watcher watches it on the LOCAL
// disk, so it is skipped there (the per-session and app-wide toggles skip it too).
if ((await this.isImageWatcherEnabled()) && session.imageWatcherEnabled && !session.remote) {
imageWatcher.watchSession(session.id, session.workingDir);
}