feat: include cwd in notify payload (#5415)

Expose the session cwd in the notify payload and update docs so scripts
and extensions receive the real project path; users get accurate
project-aware notifications in CLI and VS Code.

Fixes #5387
This commit is contained in:
Thibault Sottiaux
2025-10-20 16:53:03 -07:00
committed by GitHub
parent df15a2f6ef
commit 7fc01c6e9b
3 changed files with 7 additions and 1 deletions

View File

@@ -1715,6 +1715,7 @@ pub(crate) async fn run_task(
.notify(&UserNotification::AgentTurnComplete {
thread_id: sess.conversation_id.to_string(),
turn_id: sub_id.clone(),
cwd: turn_context.cwd.display().to_string(),
input_messages: turn_input_messages,
last_assistant_message: last_agent_message.clone(),
});