fix(service): forward PATH into the ccam systemd --user unit

systemd --user units start with systemd's own minimal PATH, not the
installer's shell PATH, so the dashboard couldn't find claude/codex
(e.g. installed under ~/.local/bin) when spawning a lane from a
service-managed server. Forward process.env.PATH into the unit's
environment from both ccam service install and the plugin bootstrap's
auto-install path.
This commit is contained in:
2026-09-03 11:29:24 +07:00
parent 8711917d44
commit 13b2bc4ab6
2 changed files with 14 additions and 2 deletions
+3
View File
@@ -480,6 +480,9 @@ function bootstrap(rt = runtimeDir(), { force = false } = {}) {
NODE_ENV: "production",
NODE_PATH: path.join(rt, "node_modules"),
DASHBOARD_CLIENT_DIST: path.join(rt, "client-dist"),
// systemd --user units get systemd's own minimal PATH, not the
// shell's — forward it so the server can find `claude`/`codex`.
PATH: process.env.PATH || "",
},
})
: "unavailable";