Add CWD propagation through hook, worker, and SDK agent

Co-authored-by: thedotmack <683968+thedotmack@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-10 19:23:06 +00:00
parent d0bdc6ae9b
commit 730c420a13
8 changed files with 43 additions and 25 deletions
+3 -2
View File
@@ -287,13 +287,14 @@ export class WorkerService {
private handleObservations(req: Request, res: Response): void {
try {
const sessionDbId = parseInt(req.params.sessionDbId, 10);
const { tool_name, tool_input, tool_response, prompt_number } = req.body;
const { tool_name, tool_input, tool_response, prompt_number, cwd } = req.body;
this.sessionManager.queueObservation(sessionDbId, {
tool_name,
tool_input,
tool_response,
prompt_number
prompt_number,
cwd
});
// CRITICAL: Ensure SDK agent is running to consume the queue