Skip to content

Omit service_tier from remote /responses/compact requests under API auth#21676

Merged
aibrahim-oai merged 5 commits into
mainfrom
dev/compaction-no-service-tier-api-auth
May 8, 2026
Merged

Omit service_tier from remote /responses/compact requests under API auth#21676
aibrahim-oai merged 5 commits into
mainfrom
dev/compaction-no-service-tier-api-auth

Conversation

@aibrahim-oai
Copy link
Copy Markdown
Collaborator

@aibrahim-oai aibrahim-oai commented May 8, 2026

Summary

API-key-auth remote compaction requests should not inherit service_tier from normal /responses turns. This path needs to match API auth expectations, while ChatGPT-auth remote compaction should keep reusing the shared request fields that still apply there.

This change keeps the decision inline in codex-rs/core/src/compact_remote.rs only. Under API key auth, the classic remote /responses/compact path now omits service_tier; under ChatGPT auth, it keeps reusing the configured tier. codex-rs/core/src/compact_remote_v2.rs is unchanged. The remote compaction parity coverage and snapshots were updated to assert the API-key omission and preserve the ChatGPT-auth behavior.

Testing

  • Updated remote compaction parity coverage in codex-rs/core/tests/suite/compact_remote.rs and the corresponding snapshots.

@aibrahim-oai aibrahim-oai requested a review from a team as a code owner May 8, 2026 06:27
@aibrahim-oai aibrahim-oai changed the title Omit service_tier from compaction requests under API auth Omit service_tier from remote compaction requests under API auth May 8, 2026
@aibrahim-oai aibrahim-oai changed the title Omit service_tier from remote compaction requests under API auth Omit service_tier from remote /responses/compact requests under API auth May 8, 2026
@aibrahim-oai aibrahim-oai merged commit 71d80f9 into main May 8, 2026
26 checks passed
@aibrahim-oai aibrahim-oai deleted the dev/compaction-no-service-tier-api-auth branch May 8, 2026 08:15
@github-actions github-actions Bot locked and limited conversation to collaborators May 8, 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