-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: Subagent announce compaction for Codex/OAuth falls into openai-responses API-key route #90925
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Bug type
Regression / routing bug
Summary
A high-context parent session using
openai/gpt-5.5through the Codex runtime with OpenAI OAuth can receive a completed subagent, but the subagent completion announce path fails while compacting the requester/parent transcript.The failure signature is that announce compaction routes through
openai/openai-responsesand rejects the OAuth auth profile because that path requires an OpenAI API-key profile. The subagent itself completed; the delivery back to the parent then retries and gives up.This looks distinct from ordinary compaction working in the parent session. It appears specific to the subagent announce / requester wake path under context pressure.
Environment
2026.6.1 (2e08f0f)openai/gpt-5.5OpenAI CodexSteps to reproduce
Observed live repro shape:
openai/gpt-5.5with effective Codex runtime and OpenAI OAuth auth.A lower-context canary did not hit the failure. A higher-context canary reproduced it.
Expected behavior
Subagent completion announce/wake should use the same effective Codex runtime/auth policy as the parent session. If requester transcript compaction is needed, it should compact through the Codex-compatible path for
openai/gpt-5.5+ OAuth, or otherwise avoid dropping the completion.It should not fall into
openai/openai-responseswith an OAuth profile that requires an API key.Actual behavior
The child completes successfully, but parent-side announce/delivery compaction fails with the following redacted signature:
The gateway then retries and reaches:
The result can still be discovered internally afterwards, but the normal parent-visible completion delivery failed.
Why this seems narrower than existing reports
Related issues found before filing:
sessions_yieldsubagent wake compacting the parent branch at unexpectedly low context usage./btwfalling back to OpenAI Responses after/new.This report combines a specific failure across those surfaces: subagent completion announce needs/attempts parent compaction, but the compaction backend appears to resolve the OpenAI model/provider as generic
openai/openai-responsesinstead of the effective Codex runtime route, producing the OAuth-vs-API-key failure and then dropping announce delivery.Impact
High for subagent-heavy Codex/OAuth workflows. A completed subagent result can fail to surface in the requester channel exactly when the parent is context-heavy, which is a common state for long orchestration work.
Using a broad OpenAI API-key fallback may mask this, but it is not a good fix for users intentionally using Codex/OAuth and avoiding generic OpenAI API spend/fallback.
Requested fix direction / question
Please confirm the intended routing contract for requester-side compaction during subagent announce/wake.
If the active parent session resolves
openai/gpt-5.5to Codex runtime + OAuth, the announce compaction path should resolve the same effective runtime/auth policy instead of relying on a thinner persisted session/provider record that can fall intoopenai/openai-responses.Acceptance criteria could be:
openai/gpt-5.5+ Codex runtime + OAuth.openai/openai-responses requires an OpenAI API key profileduring requester transcript compaction.