Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-06-08 07:32:36 +02:00
parent fc21d65c63
commit 49d9a96355
5 changed files with 529 additions and 3 deletions

View File

@@ -1210,6 +1210,7 @@ func TestAgentTool_Execute_LeafToolsRemainDetachedOnSuspend(t *testing.T) {
if ctx.Err() != nil {
leafCtxCanceled.Store(true)
}
return agent.ToolResult{Content: "leaf completed"}, nil
}
},
@@ -1235,10 +1236,12 @@ func TestAgentTool_Execute_LeafToolsRemainDetachedOnSuspend(t *testing.T) {
)
ctx, cancel := context.WithCancel(context.Background())
type runResult struct {
result *agent.Result
err error
}
runDone := make(chan runResult, 1)
go func() {