Skip to content

Add rollout migration tooling and background migration - #37348

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/276ac506c50ebec5140fd319faca1bb998172061
Aug 7, 2026
Merged

Add rollout migration tooling and background migration#37348
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/276ac506c50ebec5140fd319faca1bb998172061

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 7, 2026

Copy link
Copy Markdown

Add rollout migration tooling and background migration

What changed

  • Add codex migrate-rollouts with dry-run inspection by default, explicit --apply, thread filtering, optional I/O throttling, progress output, and JSON or verbose reports.
  • Add the disabled-by-default background_paginated_rollout_migration feature to migrate legacy local sessions at startup before rollout compression begins.
  • Persist a migration cursor and skipped-file fingerprints so later startups avoid full rescans while retrying changed files and recovering pending migrations.
  • Coordinate migration with live writers and emit metrics for manual and startup runs.

Testing

  • Cover startup cursor advancement and lookback, pending migration recovery, live-writer coordination, changed empty rollouts, and progress reporting.

## What changed

- Add `codex migrate-rollouts` with dry-run inspection by default, explicit `--apply`, thread filtering, optional I/O throttling, progress output, and JSON or verbose reports.
- Add the disabled-by-default `background_paginated_rollout_migration` feature to migrate legacy local sessions at startup before rollout compression begins.
- Persist a migration cursor and skipped-file fingerprints so later startups avoid full rescans while retrying changed files and recovering pending migrations.
- Coordinate migration with live writers and emit metrics for manual and startup runs.

## Testing

- Cover startup cursor advancement and lookback, pending migration recovery, live-writer coordination, changed empty rollouts, and progress reporting.

GitOrigin-RevId: 276ac506c50ebec5140fd319faca1bb998172061
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/276ac506c50ebec5140fd319faca1bb998172061 branch from 9c151e8 to 4bb7ee3 Compare August 7, 2026 01:27
@copyberry
copyberry Bot merged commit 4bb7ee3 into main Aug 7, 2026
26 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/276ac506c50ebec5140fd319faca1bb998172061 branch August 7, 2026 01:29
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 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