Skip to content

Reject unsupported history modes when loading rollouts - #34344

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9de4313d4a76b279d32bb49b2016a4f5d07507c1
Jul 20, 2026
Merged

Reject unsupported history modes when loading rollouts#34344
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/9de4313d4a76b279d32bb49b2016a4f5d07507c1

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 20, 2026

Copy link
Copy Markdown

Reject unsupported history modes when loading rollouts

Why

The first session metadata record defines a rollout's history mode. If that
record uses an unsupported mode, skipping it as a parse error can cause later
metadata copied from fork history to be treated as canonical.

What changed

  • Validate session metadata history modes before deserializing rollout lines,
    while continuing to tolerate unknown modes in copied fork history.
  • Simplify thread status registration to pass only the thread ID instead of a
    fully materialized Thread.

## Why

The first session metadata record defines a rollout's history mode. If that
record uses an unsupported mode, skipping it as a parse error can cause later
metadata copied from fork history to be treated as canonical.

## What changed

- Validate session metadata history modes before deserializing rollout lines,
  while continuing to tolerate unknown modes in copied fork history.
- Simplify thread status registration to pass only the thread ID instead of a
  fully materialized `Thread`.

GitOrigin-RevId: 9de4313d4a76b279d32bb49b2016a4f5d07507c1
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/9de4313d4a76b279d32bb49b2016a4f5d07507c1 branch from 3b84854 to 86102db Compare July 20, 2026 13:40
@copyberry
copyberry Bot merged commit 86102db into main Jul 20, 2026
32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/9de4313d4a76b279d32bb49b2016a4f5d07507c1 branch July 20, 2026 13:41
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 20, 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