Skip to content

Record rollout boundaries for materialized turns - #34562

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/a7da2f0b00c0bf47b841db874c79a0d495c18acd
Jul 21, 2026
Merged

Record rollout boundaries for materialized turns#34562
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/a7da2f0b00c0bf47b841db874c79a0d495c18acd

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 21, 2026

Copy link
Copy Markdown

Record rollout boundaries for materialized turns

What changed

  • Store the starting byte offset and terminal ordinal and byte offset for each turn projected into SQLite.
  • Advance offsets across blank and rejected physical lines while leaving incomplete trailing lines for the next materialization pass.
  • Stop later rollout records from changing a turn after it reaches a terminal state.

Testing

  • Cover active and completed turn positions, trailing partial lines, skipped invalid lines, subagent history prefixes, and records received after terminal state.
## What changed

- Store the starting byte offset and terminal ordinal and byte offset for each turn projected into SQLite.
- Advance offsets across blank and rejected physical lines while leaving incomplete trailing lines for the next materialization pass.
- Stop later rollout records from changing a turn after it reaches a terminal state.

## Testing

- Cover active and completed turn positions, trailing partial lines, skipped invalid lines, subagent history prefixes, and records received after terminal state.

GitOrigin-RevId: a7da2f0b00c0bf47b841db874c79a0d495c18acd
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/a7da2f0b00c0bf47b841db874c79a0d495c18acd branch from deb630d to 175f821 Compare July 21, 2026 15:11
@copyberry
copyberry Bot merged commit 175f821 into main Jul 21, 2026
30 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/a7da2f0b00c0bf47b841db874c79a0d495c18acd branch July 21, 2026 15:13
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants