Skip to content

Avoid paginated resume requests for verified legacy rollouts - #38604

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2300d1ad93a817eeeeb8f8ed60b073400ddf7106
Aug 14, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/2300d1ad93a817eeeeb8f8ed60b073400ddf7106

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 14, 2026 •

Copy link
Copy Markdown

Avoid paginated resume requests for verified legacy rollouts

Why

Resuming a known legacy rollout with excludeTurns first requires the TUI to
retry after the app server rejects paginated history loading.

What changed

  • Carry the history mode reported by the session picker into the resume flow.
  • For embedded app-server sessions, resume a legacy rollout with its turns when
    the rollout is still legacy and background migration cannot race the check.
  • Keep requesting paginated history when the picker metadata may be stale,
    migration is enabled or active, or the app server is remote.

Testing

Added coverage for picker server replacement, background migration, maintenance
lock contention, stale history metadata, and paginated resume requests.

## Why

Resuming a known legacy rollout with `excludeTurns` first requires the TUI to
retry after the app server rejects paginated history loading.

## What changed

- Carry the history mode reported by the session picker into the resume flow.
- For embedded app-server sessions, resume a legacy rollout with its turns when
  the rollout is still legacy and background migration cannot race the check.
- Keep requesting paginated history when the picker metadata may be stale,
  migration is enabled or active, or the app server is remote.

## Testing

Added coverage for picker server replacement, background migration, maintenance
lock contention, stale history metadata, and paginated resume requests.

GitOrigin-RevId: 2300d1ad93a817eeeeb8f8ed60b073400ddf7106
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/2300d1ad93a817eeeeb8f8ed60b073400ddf7106 branch from c610c55 to 1bb6384 Compare August 14, 2026 16:34
@copyberry
copyberry Bot merged commit 1bb6384 into main Aug 14, 2026
28 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/2300d1ad93a817eeeeb8f8ed60b073400ddf7106 branch August 14, 2026 16:35
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 14, 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