Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions crates/tui/src/tools/web_search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ impl ToolSpec for WebSearchTool {
ApprovalRequirement::Auto
}

fn supports_parallel(&self) -> bool {
true
}
Comment on lines +189 to +191
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 No regression test pins supports_parallel() to true. A future refactor that accidentally removes or moves this override would silently re-serialize all web searches with no failing test to catch it. Adding assert!(WebSearchTool.supports_parallel()) in the existing #[cfg(test)] block would lock the contract.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Codex Fix in Claude Code Fix in Cursor


async fn execute(&self, input: Value, context: &ToolContext) -> Result<ToolResult, ToolError> {
let query = extract_search_query(&input)?;
if query.is_empty() {
Expand Down
Loading