Skip to content

Expose structured standalone web search results - #32898

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/739ef5694ece5733f7b8749ec41d6bfa3f33c8c5
Jul 13, 2026
Merged

Expose structured standalone web search results#32898
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/739ef5694ece5733f7b8749ec41d6bfa3f33c8c5

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 13, 2026

Copy link
Copy Markdown

Expose structured standalone web search results

Why

Standalone web search can return structured result DTOs separately from its
model-facing text output. App-server clients need access to that data without
coupling Codex to every result type or field.

What changed

  • Preserve the optional results array from /v1/alpha/search as opaque JSON
    through web-search completion events, thread history, and app-server
    webSearch items.
  • Keep responses from older endpoints compatible when results is absent, and
    allow clients to ignore result types and fields they do not understand.
  • Regenerate the protocol schemas and TypeScript definitions for the optional
    field.

Testing

  • Cover responses with missing, empty, and forward-compatible result payloads.
  • Verify standalone web-search results round-trip through app-server item
    notifications and thread-item conversion.

## Why

Standalone web search can return structured result DTOs separately from its
model-facing text output. App-server clients need access to that data without
coupling Codex to every result type or field.

## What changed

- Preserve the optional `results` array from `/v1/alpha/search` as opaque JSON
  through web-search completion events, thread history, and app-server
  `webSearch` items.
- Keep responses from older endpoints compatible when `results` is absent, and
  allow clients to ignore result types and fields they do not understand.
- Regenerate the protocol schemas and TypeScript definitions for the optional
  field.

## Testing

- Cover responses with missing, empty, and forward-compatible result payloads.
- Verify standalone web-search results round-trip through app-server item
  notifications and thread-item conversion.

GitOrigin-RevId: 739ef5694ece5733f7b8749ec41d6bfa3f33c8c5
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/739ef5694ece5733f7b8749ec41d6bfa3f33c8c5 branch from b9aacff to 2ca20d5 Compare July 13, 2026 23:38
@copyberry
copyberry Bot merged commit 2ca20d5 into main Jul 13, 2026
13 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/739ef5694ece5733f7b8749ec41d6bfa3f33c8c5 branch July 13, 2026 23:39
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 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.

1 participant