Move To-Do Tool to Session Scope from Agent Scope (#4157)

This commit is contained in:
tlongwell-block
2025-08-22 10:53:42 -04:00
committed by GitHub
parent 6e8aa96d90
commit b16741dbbd
13 changed files with 543 additions and 579 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ impl Agent {
while let Some((req_id, confirmation)) = rx.recv().await {
if req_id == request.id {
if confirmation.permission == Permission::AllowOnce || confirmation.permission == Permission::AlwaysAllow {
let (req_id, tool_result) = self.dispatch_tool_call(tool_call.clone(), request.id.clone(), cancellation_token.clone()).await;
let (req_id, tool_result) = self.dispatch_tool_call(tool_call.clone(), request.id.clone(), cancellation_token.clone(), &None).await;
let mut futures = tool_futures.lock().await;
futures.push((req_id, match tool_result {