Skip to content

Track history initialization in Responses turn metadata - #52325

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/468153512a84d0f4d4ea742198a29e0fa3873a72
Oct 8, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/468153512a84d0f4d4ea742198a29e0fa3873a72

Conversation

@copyberry

@copyberry copyberry Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Track history initialization in Responses turn metadata

What changed

Add history_initialization to x-codex-turn-metadata, distinguishing new, cleared, cold_resume, warm_fork, cold_fork, and supplied_history.

Classify forks by whether the source runtime is loaded and has not shut down. Preserve the classification for the runtime's lifetime, including warm resumes and compaction. This records how history was initialized; it does not establish whether tool metadata is missing. Reserve the field against client-supplied overrides.

Testing

Extend coverage for warm and cold forks, cold resumes, warm reconnects, supplied history, WebSocket metadata serialization, and reserved-field filtering.

## What changed

Add `history_initialization` to `x-codex-turn-metadata`, distinguishing `new`, `cleared`, `cold_resume`, `warm_fork`, `cold_fork`, and `supplied_history`.

Classify forks by whether the source runtime is loaded and has not shut down. Preserve the classification for the runtime's lifetime, including warm resumes and compaction. This records how history was initialized; it does not establish whether tool metadata is missing. Reserve the field against client-supplied overrides.

## Testing

Extend coverage for warm and cold forks, cold resumes, warm reconnects, supplied history, WebSocket metadata serialization, and reserved-field filtering.

GitOrigin-RevId: 468153512a84d0f4d4ea742198a29e0fa3873a72
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/468153512a84d0f4d4ea742198a29e0fa3873a72 branch from 790268f to 780d7ab Compare October 8, 2026 23:34
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-08T23:34:28.495191Z 790268f 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 780d7ab into main Oct 8, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/468153512a84d0f4d4ea742198a29e0fa3873a72 branch October 8, 2026 23:34
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 8, 2026
@TheKillerMax
TheKillerMax deployed to issue-triage October 8, 2026 23:39 — with Image GitHub Actions Active
@TheKillerMax
TheKillerMax deployed to issue-triage October 8, 2026 23:39 — with Image GitHub Actions Active
@TheKillerMax
TheKillerMax deployed to issue-triage October 8, 2026 23:39 — with Image GitHub Actions Active
@adamcstone
adamcstone deployed to issue-triage October 8, 2026 23:39 — with Image GitHub Actions Active
@adamcstone
adamcstone deployed to issue-triage October 8, 2026 23:39 — with Image GitHub Actions Active
@adamcstone
adamcstone deployed to issue-triage October 8, 2026 23:39 — with Image GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — 780d7ab0 Deployed Oct 8, 2026 by adamcstone via Identify potential duplicates (all issues) #53397
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