Skip to content

Track collaboration mode instructions in world state - #33876

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

Track collaboration mode instructions in world state#33876
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/ffd1683499f09acef6516b0bfcb5bcb4d3f28df4

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 17, 2026

Copy link
Copy Markdown

Track collaboration mode instructions in world state

What changed

  • Model collaboration mode as a world-state section whose persisted snapshot is
    the active mode.
  • Emit collaboration instructions when the mode changes, while ignoring
    instruction text changes within the same mode.
  • Restore persisted collaboration instructions when they are missing from
    retained history, including after a fork.

Testing

  • Add snapshot coverage for initial, unchanged, changed, and unknown mode state.
  • Cover retained-history restoration and same-mode instruction changes.

## What changed

- Model collaboration mode as a world-state section whose persisted snapshot is
  the active mode.
- Emit collaboration instructions when the mode changes, while ignoring
  instruction text changes within the same mode.
- Restore persisted collaboration instructions when they are missing from
  retained history, including after a fork.

## Testing

- Add snapshot coverage for initial, unchanged, changed, and unknown mode state.
- Cover retained-history restoration and same-mode instruction changes.

GitOrigin-RevId: ffd1683499f09acef6516b0bfcb5bcb4d3f28df4
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/ffd1683499f09acef6516b0bfcb5bcb4d3f28df4 branch from 0afc2a9 to cf4c8ca Compare July 17, 2026 17:23
@copyberry
copyberry Bot merged commit cf4c8ca into main Jul 17, 2026
11 of 26 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/ffd1683499f09acef6516b0bfcb5bcb4d3f28df4 branch July 17, 2026 17:25
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 17, 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.

6 participants