Skip to content

Broaden remote compaction model fallback - #32881

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

Broaden remote compaction model fallback#32881
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/c3857beae2ce79b50589deb13c2e59710ce14725

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 13, 2026

Copy link
Copy Markdown

Broaden remote compaction model fallback

Why

Compacting a resumed conversation can fail when its previous model is no longer
available. Some model-specific failures, such as a model-not-found response, are
not represented as invalid requests and therefore did not trigger the existing
fallback to the currently selected model.

What changed

  • Share a retry predicate between both remote compaction implementations.
  • Fall back to the current model for invalid requests, unexpected statuses,
    context-window and usage-limit errors, server failures, and exhausted retries.

Testing

Add an integration test that resumes a conversation whose previous model returns
model-not-found and verifies that compaction and the next turn use the renamed
model.

## Why

Compacting a resumed conversation can fail when its previous model is no longer
available. Some model-specific failures, such as a model-not-found response, are
not represented as invalid requests and therefore did not trigger the existing
fallback to the currently selected model.

## What changed

- Share a retry predicate between both remote compaction implementations.
- Fall back to the current model for invalid requests, unexpected statuses,
  context-window and usage-limit errors, server failures, and exhausted retries.

## Testing

Add an integration test that resumes a conversation whose previous model returns
model-not-found and verifies that compaction and the next turn use the renamed
model.

GitOrigin-RevId: c3857beae2ce79b50589deb13c2e59710ce14725
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/c3857beae2ce79b50589deb13c2e59710ce14725 branch from b874605 to 0877afb Compare July 13, 2026 21:55
@copyberry
copyberry Bot merged commit 0877afb into main Jul 13, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/c3857beae2ce79b50589deb13c2e59710ce14725 branch July 13, 2026 21:56
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 13, 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.

4 participants