Skip to content

Preserve web search actions and results in exec JSON output - #46319

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9a7f4c9c2eb163ba62f5e1642437a9debffc3816
Sep 17, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9a7f4c9c2eb163ba62f5e1642437a9debffc3816

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 17, 2026 •

Copy link
Copy Markdown

Preserve web search actions and results in exec JSON output

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.

## 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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/9a7f4c9c2eb163ba62f5e1642437a9debffc3816 branch from 4a46043 to f8c6026 Compare September 17, 2026 23:36
@copyberry
copyberry Bot merged commit f8c6026 into main Sep 17, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/9a7f4c9c2eb163ba62f5e1642437a9debffc3816 branch September 17, 2026 23:36
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 17, 2026
@yoshino6
yoshino6 deployed to issue-triage September 17, 2026 23:36 — with GitHub Actions Active
@yoshino6
yoshino6 deployed to issue-triage September 17, 2026 23:36 — with GitHub Actions Active
@yoshino6
yoshino6 deployed to issue-triage September 17, 2026 23:36 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — f8c6026c Deployed Sep 17, 2026 by yoshino6 via Generate label suggestions #46418
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.

3 participants