You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ActionFind.url is required but live find_in_page web_search_call items omit url #3788
Confirm this is an issue with the Python library and not an underlying OpenAI API
This is an issue with the Python library
The live Responses API can omit url on web_search_call actions of type find_in_page. The generated SDK type still requires it, so strict validation fails even though the API accepted/produced the item.
This is the same class of API/SDK drift as #2620 (open_page.url was required, API returned null) and the leftover gap after #2621 (find_in_page type was added, but url stayed required). Those were closed as fixed in v2.17.0. ActionFind.url is still str (required) on current main / v3.7.0.
ResponseFunctionWebSearch / ActionFind rejects this because url is missing.
This is easy to miss on the live streaming path (items can be constructed more loosely, then dumped with exclude_unset=True). It then blows up when the payload is re-validated, in particular openai-agentsRunState.from_json() → ModelResponse(...) on resume after a pause.
ActionOpenPage.url was correctly made optional. ActionFind.url was not.
To Reproduce
Run a Responses API / Agents SDK turn that uses hosted web_search and performs a find_in_page action. The API may omit action.url.
Serialize the run (RunState.to_json() / model_dump(exclude_unset=True)).
Restore with RunState.from_json() or ResponseFunctionWebSearch.model_validate(...).
Validation fails on action.ActionFind.url with Field required.
Minimal local reproduction below does not need a live API call.
changed the title [-] is required but live web_search_call items omit [/-][+]ActionFind.url is required but live find_in_page web_search_call items omit url[/+]on Sep 3, 2026
Confirmed, this looks like an SDK typing issue rather than an issue with the underlying Responses API. The API can return find_in_page without a url, so ActionFind.url should be optional, consistent with ActionOpenPage.url. PRs #3792 and #3797 look to address this.
Thanks for the detailed reproduction and for explaining how this interrupts restoring an Agents run. Validation rejects the saved item because the generated find_in_page type requires url. Your example captures that failure; the remaining question is whether the URL is absent in the original response or lost while saving the state.
We’re closing this report to keep the investigation together in openai/openai-openapi#571, which preserves your reproduction. Please follow that issue for progress. If available, a sanitized comparison of the raw response, SDK item, and saved state would help identify the right correction.
Activity
[-] is required but live web_search_call items omit [/-][+]ActionFind.url is required but live find_in_page web_search_call items omit url[/+]aktaseren commentedon Sep 5, 2026
Confirmed, this looks like an SDK typing issue rather than an issue with the underlying Responses API. The API can return find_in_page without a url, so ActionFind.url should be optional, consistent with ActionOpenPage.url. PRs #3792 and #3797 look to address this.
marcuswood-oai commentedon Sep 15, 2026
Thanks for the detailed reproduction and for explaining how this interrupts restoring an Agents run. Validation rejects the saved item because the generated
find_in_pagetype requiresurl. Your example captures that failure; the remaining question is whether the URL is absent in the original response or lost while saving the state.We’re closing this report to keep the investigation together in openai/openai-openapi#571, which preserves your reproduction. Please follow that issue for progress. If available, a sanitized comparison of the raw response, SDK item, and saved state would help identify the right correction.