From 9975e5c70e85cbf8b3db44565f1d55b813c0df5f Mon Sep 17 00:00:00 2001 From: can1357 Date: Wed, 19 Aug 2026 01:13:19 +0200 Subject: [PATCH] docs(coding-agent): fix stale worker-cwd comment in js eval process entry resolveWorkerSpawnCmd no longer pins the host-entry worker cwd to the install dir; the subprocess inherits the agent cwd (or the package root under the bun-test fallback). Update the chdir rationale accordingly. --- packages/coding-agent/src/eval/js/process-entry.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/coding-agent/src/eval/js/process-entry.ts b/packages/coding-agent/src/eval/js/process-entry.ts index d4d794cf3..b5898b96a 100644 --- a/packages/coding-agent/src/eval/js/process-entry.ts +++ b/packages/coding-agent/src/eval/js/process-entry.ts @@ -19,10 +19,10 @@ export function startJsEvalProcess( }, { mode: "isolated", - // The subprocess starts with its real cwd at the worker-host entry dir - // (a `resolveWorkerSpawnCmd` requirement); mirror the session cwd so - // cell code using relative paths or spawning children resolves against - // the project instead of the install dir. Worker threads cannot pass + // The subprocess inherits the agent's cwd (or the package root under + // the `bun test` fallback of `resolveWorkerSpawnCmd`); mirror the + // session cwd so cell code using relative paths or spawning children + // resolves against the session's project. Worker threads cannot pass // this — `process.chdir` is unavailable there. chdir: cwd => process.chdir(cwd), interceptUnhandledRejections,