You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(worker): drop sessionWorkingDirectory/enableConfigDiscovery/enableSkills options
These three knobs added new public API to PilotSwarmWorkerOptions (and
WorkerDefaults) just to plumb Copilot SDK session-config fields the SDK already
owns. Remove them and fall back to the GHCP SDK defaults instead:
- workingDirectory: per-session value only; otherwise the CLI uses process.cwd()
(SDK default). The serve harness roots discovery by chdir-ing the worker
process into the enlistment checkout (BUILD_SOURCESDIRECTORY /
PILOTSWARM_SESSION_WORKING_DIR, guarded by a .github probe) — no SDK option.
- enableConfigDiscovery / enableSkills: no override; sessions use SDK defaults
(discovery off, skills on).
Observability is kept: the per-session "GHCP-SDK createSession params" diagnostic
still logs the effective workingDirectory / enableConfigDiscovery / enableSkills
and the .github on-disk probes, and the worker-startup log states the SDK
defaults in effect. Type-check + node --check pass.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 26f310eb-4680-4102-a8aa-f8d041940ab4
console.log(`[session-worker] platform session workingDirectory=${sessionWorkingDirectory} (enableConfigDiscovery=${enableConfigDiscovery}) — repo .github skills/agents will be discovered`);
130
+
try{
131
+
process.chdir(sessionWorkingDirectory);
132
+
console.log(`[session-worker] chdir -> ${sessionWorkingDirectory} (enlistment checkout with .github); Copilot CLI workingDirectory falls back to this cwd`);
133
+
}catch(err){
134
+
console.log(`[session-worker] failed to chdir to ${sessionWorkingDirectory}: ${err?.message??err}; sessions use the current cwd (${process.cwd()})`);
135
+
}
127
136
}else{
128
-
console.log(`[session-worker] no enlistment checkout detected (PILOTSWARM_SESSION_WORKING_DIR / BUILD_SOURCESDIRECTORY lacked .github); sessions use the worker cwd — repo .github skills NOT discovered (enableConfigDiscovery=${enableConfigDiscovery})`);
137
+
console.log(`[session-worker] no enlistment checkout detected (PILOTSWARM_SESSION_WORKING_DIR / BUILD_SOURCESDIRECTORY lacked .github); sessions use the worker cwd (${process.cwd()})`);
129
138
}
139
+
console.log(`[session-worker] .github auto-discovery uses the GHCP SDK default (enableConfigDiscovery OFF) — repo .github skills are NOT auto-enumerated by this harness`);
0 commit comments