Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(tests): update assertion for delegate tool description change\n\nThe test previously asserted that the delegate tool description contained "direct tools are insufficient", but a recent change removed that repeated prefix from every delegate schema. The assertion is updated to verify the description now contains the target's `when_to_use` text verbatim and no longer includes the removed prefix.\n\nAuto-committed-on: dragonfly\n

Steven Enamakeleb88a0bb411e
diff --git a/tests/raw_coverage/tools_approval_channels_raw_coverage_e2e.rs b/tests/raw_coverage/tools_approval_channels_raw_coverage_e2e.rs
index e3e0d1772b..7620a32321 100644
--- a/tests/raw_coverage/tools_approval_channels_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/tools_approval_channels_raw_coverage_e2e.rs
@@ -1620,12 +1620,15 @@ async fn orchestrator_tool_synthesis_covers_agent_and_integration_delegation_edg
assert_eq!(names, vec!["research", "delegate_to_integrations_agent"]);
let research = &tools[0];
- assert!(research
- .description()
- .contains("direct tools are insufficient"));
+ // #1335 dropped the repeated "Use only when direct response/direct tools
+ // are insufficient. " prefix from every delegate schema (13 tokens each);
+ // the description is now the target's `when_to_use` verbatim.
assert!(research
.description()
.contains("careful public-source research"));
+ assert!(!research
+ .description()
+ .contains("direct tools are insufficient"));
assert_eq!(research.permission_level(), PermissionLevel::Execute);
assert_eq!(research.category(), ToolCategory::System);
assert_eq!(