Skip to content

Preserve client metadata through queued submissions - #59826

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/508043b1d3d0298c9af2be8e05b6999de46596a1
Nov 6, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/508043b1d3d0298c9af2be8e05b6999de46596a1

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Preserve client metadata through queued submissions

Why

Queued inputs previously stored and dispatched without the submitting client's Responses API metadata, losing attribution such as client_type when the queued turn started.

What changed

  • Accept responsesapiClientMetadata when adding or updating queued submissions and expose it on returned queue items.
  • Persist metadata with the input and forward it when starting a selected item or dispatching an idle queue, including after restoration.
  • Preserve existing metadata when an update omits it or supplies an empty map; replace it when a non-empty map is supplied.
  • Keep stored inputs readable by older queue workers and update generated protocol artifacts.

Testing

Extend queue service and app-server tests to cover metadata round trips, preservation and replacement on edits, compatibility with older readers, and forwarding during selected, idle, and restored dispatch.

## Why

Queued inputs previously stored and dispatched without the submitting client's Responses API metadata, losing attribution such as `client_type` when the queued turn started.

## What changed

- Accept `responsesapiClientMetadata` when adding or updating queued submissions and expose it on returned queue items.
- Persist metadata with the input and forward it when starting a selected item or dispatching an idle queue, including after restoration.
- Preserve existing metadata when an update omits it or supplies an empty map; replace it when a non-empty map is supplied.
- Keep stored inputs readable by older queue workers and update generated protocol artifacts.

## Testing

Extend queue service and app-server tests to cover metadata round trips, preservation and replacement on edits, compatibility with older readers, and forwarding during selected, idle, and restored dispatch.

GitOrigin-RevId: 508043b1d3d0298c9af2be8e05b6999de46596a1
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/508043b1d3d0298c9af2be8e05b6999de46596a1 branch from bbcec01 to a037e65 Compare November 6, 2026 05:10
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-06T05:10:59.474025Z bbcec01 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit a037e65 into main Nov 6, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/508043b1d3d0298c9af2be8e05b6999de46596a1 branch November 6, 2026 05:11
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 6, 2026

This branch was previously deployed

1 inactive deployment
issue-triage — a037e65e Deployed Nov 6, 2026 by OyatsuSuki via Translate non-English issue #24768
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.

2 participants