Skip to content

fix(compaction): restore OpenAI compaction request auth headers and retain Codex server compaction - #905

Merged
santhreal merged 12 commits into
mainfrom
fix/openai-compaction-404
Aug 24, 2026
Merged

fix(compaction): restore OpenAI compaction request auth headers and retain Codex server compaction#905
santhreal merged 12 commits into
mainfrom
fix/openai-compaction-404

Conversation

@santhreal

@santhreal santhreal commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Fixed OpenAI server-side compaction requests (POST /v1/responses/compact) omitting the Authorization: Bearer <key> header by reading setup.headers instead of setup.requestHeaders.
  • Retained server-side compaction support for ChatGPT OAuth Codex sessions (https://chatgpt.com/backend-api/codex/responses/compact), sending the OAuth credential, turn identity, and client metadata.
  • Re-enabled and verified regression test suite packages/agent/test/a-chatgpt-oauth-session-compacts-on-the-codex-backend.test.ts and packages/agent/test/compaction-remote.test.ts.

@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f14c3a79-b1a7-4263-8b24-e78e01309c5b


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@santhreal santhreal changed the title fix(compaction): exclude Codex from server-side compaction and restore OpenAI request auth fix(compaction): restore OpenAI compaction request auth headers and retain Codex server compaction Aug 24, 2026
# Conflicts:
#	docs/handbook/book/404.html
#	docs/handbook/book/acknowledgements.html
#	docs/handbook/book/appendix/glossary.html
#	docs/handbook/book/architecture/compaction.html
#	docs/handbook/book/architecture/config.html
#	docs/handbook/book/architecture/mcp.html
#	docs/handbook/book/architecture/memory.html
#	docs/handbook/book/architecture/overview.html
#	docs/handbook/book/architecture/providers.html
#	docs/handbook/book/architecture/sandbox.html
#	docs/handbook/book/architecture/secrets.html
#	docs/handbook/book/architecture/session-turn.html
#	docs/handbook/book/architecture/tui.html
#	docs/handbook/book/concepts/index.html
#	docs/handbook/book/concepts/model-contract.html
#	docs/handbook/book/concepts/permission-model.html
#	docs/handbook/book/concepts/sessions-turns-threads.html
#	docs/handbook/book/context/compaction-memory.html
#	docs/handbook/book/context/context-files.html
#	docs/handbook/book/context/goal-state.html
#	docs/handbook/book/context/reads-search.html
#	docs/handbook/book/edit/edit-repair.html
#	docs/handbook/book/edit/engine.html
#	docs/handbook/book/edit/roadmap.html
#	docs/handbook/book/features/advisor.html
#	docs/handbook/book/features/branching.html
#	docs/handbook/book/features/cockpit.html
#	docs/handbook/book/features/collab.html
#	docs/handbook/book/features/connectors.html
#	docs/handbook/book/features/cpu-limit.html
#	docs/handbook/book/features/doctor.html
#	docs/handbook/book/features/exec.html
#	docs/handbook/book/features/export-import.html
#	docs/handbook/book/features/extensions-authoring.html
#	docs/handbook/book/features/extensions.html
#	docs/handbook/book/features/feature-flags.html
#	docs/handbook/book/features/hooks-authoring.html
#	docs/handbook/book/features/hooks.html
#	docs/handbook/book/features/index.html
#	docs/handbook/book/features/keybindings.html
#	docs/handbook/book/features/lsp.html
#	docs/handbook/book/features/marketplace-authoring.html
#	docs/handbook/book/features/marketplace.html
#	docs/handbook/book/features/mcp.html
#	docs/handbook/book/features/memory.html
#	docs/handbook/book/features/personalities.html
#	docs/handbook/book/features/plan-mode.html
#	docs/handbook/book/features/plugins.html
#	docs/handbook/book/features/profiles.html
#	docs/handbook/book/features/python-repl.html
#	docs/handbook/book/features/review.html
#	docs/handbook/book/features/sandbox.html
#	docs/handbook/book/features/secrets.html
#	docs/handbook/book/features/skills-authoring.html
#	docs/handbook/book/features/skills.html
#	docs/handbook/book/features/speech.html
#	docs/handbook/book/features/subagents.html
#	docs/handbook/book/features/web-search.html
#	docs/handbook/book/foundations/architecture.html
#	docs/handbook/book/foundations/thesis.html
#	docs/handbook/book/foundations/verification.html
#	docs/handbook/book/index.html
#	docs/handbook/book/introduction.html
#	docs/handbook/book/models/prompts.html
#	docs/handbook/book/models/providers.html
#	docs/handbook/book/models/system-prompt.html
#	docs/handbook/book/observability/overview.html
#	docs/handbook/book/print.html
#	docs/handbook/book/reference/approval-mode.html
#	docs/handbook/book/reference/cli.html
#	docs/handbook/book/reference/environment-complete.html
#	docs/handbook/book/reference/environment.html
#	docs/handbook/book/reference/exit-codes.html
#	docs/handbook/book/reference/file-locations.html
#	docs/handbook/book/reference/hooks.html
#	docs/handbook/book/reference/index.html
#	docs/handbook/book/reference/keybindings-config.html
#	docs/handbook/book/reference/keybindings-ref.html
#	docs/handbook/book/reference/mcp-config.html
#	docs/handbook/book/reference/models-yml.html
#	docs/handbook/book/reference/project-trust.html
#	docs/handbook/book/reference/providers.html
#	docs/handbook/book/reference/rpc.html
#	docs/handbook/book/reference/sdk.html
#	docs/handbook/book/reference/settings-reference.html
#	docs/handbook/book/reference/settings.html
#	docs/handbook/book/reference/skills.html
#	docs/handbook/book/reference/slash-commands.html
#	docs/handbook/book/reference/theme.html
#	docs/handbook/book/reference/tools.html
#	docs/handbook/book/reference/tree-command.html
#	docs/handbook/book/repair/cascade.html
#	docs/handbook/book/repair/overview.html
#	docs/handbook/book/repair/per-model.html
#	docs/handbook/book/repair/soundness.html
#	docs/handbook/book/router/role-routing.html
#	docs/handbook/book/searcher-c2a407aa.js
#	docs/handbook/book/searchindex-0f4183a4.js
#	docs/handbook/book/using/authentication.html
#	docs/handbook/book/using/configuration.html
#	docs/handbook/book/using/configuring-providers.html
#	docs/handbook/book/using/custom-tools.html
#	docs/handbook/book/using/editing.html
#	docs/handbook/book/using/examples.html
#	docs/handbook/book/using/extending.html
#	docs/handbook/book/using/faq.html
#	docs/handbook/book/using/getting-started.html
#	docs/handbook/book/using/install.html
#	docs/handbook/book/using/mcp-setup.html
#	docs/handbook/book/using/migration-guide.html
#	docs/handbook/book/using/models.html
#	docs/handbook/book/using/quickstart.html
#	docs/handbook/book/using/roles-and-profiles.html
#	docs/handbook/book/using/safety.html
#	docs/handbook/book/using/sessions.html
#	docs/handbook/book/using/task-guides.html
#	docs/handbook/book/using/themes.html
#	docs/handbook/book/using/troubleshooting.html
#	docs/handbook/book/why/argot.html
#	docs/handbook/book/why/index.html
#	docs/handbook/book/why/innovations.html
#	docs/handbook/book/why/performance.html
#	docs/handbook/book/why/value.html
@santhreal
santhreal merged commit 787d35c into main Aug 24, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant