From f0b762e745d280bcc59d39090f7d3e8ec07c3add Mon Sep 17 00:00:00 2001 From: Codeman maintainer Date: Tue, 13 Oct 2026 18:19:17 +0200 Subject: [PATCH] fix(session-options): label a remote or Docker session's working folder correctly (#593 merge-time fix) The row said the path is "on the machine hosting Codeman" for every session. A remote SSH session's workingDir is the path on the remote host, and a Docker session's CLI runs inside the container the host folder is mounted into. openSessionOptions now sets the description from session.remote / session.docker (the id it targets was added with the layout fix). Co-Authored-By: Claude Opus 5.5 (1M context) --- src/web/public/session-ui.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/web/public/session-ui.js b/src/web/public/session-ui.js index 8575cac6..ca6dd783 100644 --- a/src/web/public/session-ui.js +++ b/src/web/public/session-ui.js @@ -2579,6 +2579,13 @@ Object.assign(CodemanApp.prototype, { _pathEl.textContent = session.workingDir || ''; _pathEl.title = session.workingDir || ''; document.getElementById('modalSessionPathCopy').disabled = !session.workingDir; + // A remote session's workingDir is the REMOTE path; a docker session's is the + // host bind-mount source the container sees. + document.getElementById('modalSessionPathDesc').textContent = session.remote + ? "Where this session's CLI runs, on the remote host it reaches over SSH, not on this machine." + : session.docker + ? "On the machine hosting Codeman, mounted into the Docker container this session's CLI runs in." + : "Where this session's CLI runs, on the machine hosting Codeman."; // Initialize color picker with current session color const currentColor = session.color || 'default';