Skip to content

fix(responses): make WebSearchActionFind.url optional#574

Open
hzargar2 wants to merge 1 commit into
64bit:mainfrom
hzargar2:main
Open

fix(responses): make WebSearchActionFind.url optional#574
hzargar2 wants to merge 1 commit into
64bit:mainfrom
hzargar2:main

Conversation

@hzargar2

Copy link
Copy Markdown

The Responses API omits url on find / find_in_page web-search actions that continue within a page already opened by a prior open_page action. Because WebSearchActionFind.url is a required String, deserializing such a response fails with missing field url``, which aborts parsing of the entire response for any web search that uses find-in-page continuation.

Make url an Option<String>, mirroring the already-optional WebSearchActionOpenPage::url. No other code constructs the struct and cargo check passes.

The Responses API omits `url` on `find` / `find_in_page` web-search actions
that continue within a page already opened by a prior `open_page` action.
Because `WebSearchActionFind.url` is a required `String`, deserializing such a
response fails with `missing field `url``, which aborts parsing of the entire
response for any web search that uses find-in-page continuation.

Make `url` an `Option<String>`, mirroring the already-optional
`WebSearchActionOpenPage::url`. No other code constructs the struct and
`cargo check` passes.

Cut on top of async-openai-v0.36.1 to match the sec workspace pin
(`async-openai = "0.36.1"`); a patch built on a newer minor would not satisfy
the `^0.36.1` requirement and cargo would silently drop it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant