Preserve web search actions and results in exec JSON output - #46319
Merged
copyberry[bot] merged 1 commit intoSep 17, 2026
Conversation
## Why Web search events in `codex exec --json` dropped structured results and relied on a serialization round trip to convert action types. ## What changed Map web search actions explicitly, preserving `open_page` URLs and `find_in_page` URLs and patterns. Forward structured results through an optional `results` field, omitting it when unavailable while preserving empty arrays and error payloads. ## Testing Add regression coverage for page actions with absent, empty, successful, and error results in serialized `item.completed` events. GitOrigin-RevId: 9a7f4c9c2eb163ba62f5e1642437a9debffc3816
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/9a7f4c9c2eb163ba62f5e1642437a9debffc3816
branch
from
September 17, 2026 23:36
4a46043 to
f8c6026
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/9a7f4c9c2eb163ba62f5e1642437a9debffc3816
branch
September 17, 2026 23:36
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preserve web search actions and results in exec JSON output
Why
Web search events in
codex exec --jsondropped structured results and relied on a serialization round trip to convert action types.What changed
Map web search actions explicitly, preserving
open_pageURLs andfind_in_pageURLs and patterns. Forward structured results through an optionalresultsfield, omitting it when unavailable while preserving empty arrays and error payloads.Testing
Add regression coverage for page actions with absent, empty, successful, and error results in serialized
item.completedevents.