-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Discord channel remains trapped in oversized session after /new; compaction fails provider_error_4xx and model drifts from codex/gpt-5.5 to gpt-5.4 #90496
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:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm 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.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: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm 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.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: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
A Discord channel can get trapped in an oversized session where every normal message returns:
This persists even after light follow-up messages and after attempting to recover with
/new/manual compaction. The channel continues to bind to a very large session, compaction repeatedly fails withprovider_error_4xx, and the active channel session can showgpt-5.4even though global/default config is pinned tocodex/gpt-5.5with no fallbacks.Environment
Config/model policy:
{ "agents": { "defaults": { "model": { "primary": "codex/gpt-5.5", "fallbacks": [] } } } }Configured subagents were also set back to
codex/gpt-5.5withfallbacks: []after the 2026.6.1 update migrated them toopenai/gpt-5.5.openclaw models listshows:Expected behavior
One of these should happen when a Discord channel session gets too large:
/compactsucceeds manually./newcreates a clean small session for the channel.The channel should also respect the configured default route
codex/gpt-5.5and should not drift togpt-5.4when no fallback is configured.Actual behavior
The Discord
#mainchannel repeatedly returns the context-too-large error even for simple messages like a product question or “Hello”.The session remains large/over budget and compaction fails repeatedly:
Live session inspection showed this channel bound to an oversized/near-overlimit session:
{ "key": "agent:main:discord:channel:1488013357016420522", "sessionId": "58d36597-52c3-476a-954d-e01561f23d58", "modelProvider": "codex", "model": "gpt-5.4", "totalTokens": 231980, "contextTokens": 272000, "totalTokensFresh": true }After further attempted recovery, the channel showed a new session id but still
gpt-5.4and not a clean/small 5.5 lane:{ "key": "agent:main:discord:channel:1488013357016420522", "sessionId": "f79787f0-a5ba-4d64-9d34-f2a69e6d69c3", "modelProvider": "codex", "model": "gpt-5.4", "totalTokens": null, "contextTokens": 200000, "totalTokensFresh": false }There was also an idle scheduled/reminder-style item targeting the same channel session with
codex/gpt-5.4while the rest of GPT cron routes werecodex/gpt-5.5:User-visible impact
The Discord channel becomes effectively unusable. Every normal message returns the same context-too-large warning. Manual
/compactproduces no usable recovery./new/recovery behavior does not reliably create a clean, small, configured-model continuation.Notes
codex/gpt-5.5with no fallbacks.openai/gpt-*entries are configured compatibility entries but auth is not available and should not be active defaults.Ask
Please investigate:
provider_error_4xxwithout a recoverable fallback path./newor channel recovery can leave the channel bound to a huge/failed lane.gpt-5.4despite config defaultcodex/gpt-5.5andfallbacks: [].