Skip to content

fix: handle all web_search actions and in progress invocations#9960

Merged
sayan-oai merged 5 commits intomainfrom
dev/sayan/web-search-events
Jan 27, 2026
Merged

fix: handle all web_search actions and in progress invocations#9960
sayan-oai merged 5 commits intomainfrom
dev/sayan/web-search-events

Conversation

@sayan-oai
Copy link
Collaborator

@sayan-oai sayan-oai commented Jan 27, 2026

Summary

  • Parse all web_search tool actions (search, find_in_page, open_page).
    • Previously we only parsed + displayed search, which made the TUI appear to pause when the other actions were being used.
  • Show in progress web_search calls as Searching the web
    • Previously we only showed completed tool calls
image

Tests

Added + updated tests, tested locally

Follow ups

Update VSCode extension to display these as well

let original_value: serde_json::Value = serde_json::from_str(json_literal)?;
assert_eq!(serialized, original_value);
let mut expected_serialized: serde_json::Value = serde_json::from_str(json_literal)?;
if !expect_roundtrip && let Some(obj) = expected_serialized.as_object_mut() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why don't we expect roundtrip?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

id isnt serialized on WebSearchCall so it's not present after serialization

@sayan-oai sayan-oai enabled auto-merge (squash) January 27, 2026 03:24
@sayan-oai sayan-oai merged commit 86adf53 into main Jan 27, 2026
32 checks passed
@sayan-oai sayan-oai deleted the dev/sayan/web-search-events branch January 27, 2026 03:33
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants