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
+2 -1
View File
@@ -141,7 +141,8 @@ export class SDKAgent {
tool_name: message.tool_name!,
tool_input: JSON.stringify(message.tool_input),
tool_output: JSON.stringify(message.tool_response),
created_at_epoch: Date.now()
created_at_epoch: Date.now(),
cwd: message.cwd
})
},
session_id: session.claudeSessionId,
+2 -1
View File
@@ -83,7 +83,8 @@ export class SessionManager {
tool_name: data.tool_name,
tool_input: data.tool_input,
tool_response: data.tool_response,
prompt_number: data.prompt_number
prompt_number: data.prompt_number,
cwd: data.cwd
});
// Notify generator immediately (zero latency)