-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: Pi + Codex OAuth route mismatch and encrypted-reasoning retries on GPT-5.5 #87099
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.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: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
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.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: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
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
On 2026.5.22, the documented/expected
openai/gpt-5.5+ Pi runtime +openai-codexOAuth setup is not usable end-to-end, while the legacyopenai-codex/gpt-5.5workaround logs repeated encrypted-reasoning retry warnings.Steps to reproduce
openai-codex.{ "agents": { "defaults": { "model": { "primary": "openai/gpt-5.5" }, "models": { "openai/gpt-5.5": { "agentRuntime": { "id": "pi" } } } } }, "auth": { "order": { "openai": ["openai-codex:[email protected]"] }, "profiles": { "openai-codex:[email protected]": { "provider": "openai-codex", "mode": "oauth" } } } }/model openai/gpt-5.5@openai-codex:[email protected].openai-codex/gpt-5.5withagentRuntime.id: "pi"and run normal agent turns.Expected behavior
Using
openai/gpt-5.5withagentRuntime.id: "pi"should be able to select/use the configuredopenai-codexOAuth profile without requiringOPENAI_API_KEYor switching to the Codex runtime. Normal GPT-5.5 turns should not need a failed encrypted-reasoning attempt before retrying.Actual behavior
The manual profile pin path rejects the Codex OAuth profile for the canonical model, with the user-visible error:
Auth profile "openai-codex:[email protected]" is for openai-codex, not openai.Using
auth.order.openai: ["openai-codex:[email protected]"]did not preserve the desired Pi + Codex OAuth route foropenai/gpt-5.5in this setup. The practical workaround isopenai-codex/gpt-5.5plusagentRuntime.id: "pi".That workaround runs, but gateway logs repeatedly show:
[responses] retrying without encrypted reasoning content provider=openai-codex api=openai-codex-responses model=gpt-5.5.OpenClaw version
2026.5.22 (a374c3a)
Operating system
macOS 26.5 (25F71), arm64
Install method
local source checkout, gateway launched from dist via LaunchAgent (
node ~/clawdbot/dist/index.js gateway)Model
openai/gpt-5.5 intended route; openai-codex/gpt-5.5 legacy workaround
Provider / routing chain
OpenClaw gateway -> Pi runtime -> OpenAI GPT-5.5 with Codex OAuth profile (legacy workaround uses openai-codex-responses transport)
Additional provider/model setup details
Redacted relevant config shape:
{ "agents": { "defaults": { "model": { "primary": "openai-codex/gpt-5.5", "fallbacks": ["openai-codex/gpt-5.4", "..."] }, "models": { "openai/gpt-5.5": { "agentRuntime": { "id": "pi" } }, "openai-codex/gpt-5.5": { "alias": "gpt", "params": { "thinking": "low" }, "agentRuntime": { "id": "pi" } } } } }, "auth": { "order": { "openai": ["openai-codex:[email protected]"] }, "profiles": { "openai-codex:[email protected]": { "provider": "openai-codex", "mode": "oauth" } } } }openclaw models statusshows bothopenai/gpt-5.5andopenai-codex/gpt-5.5configured/available, but the OAuth profile is under provideropenai-codex.Logs, screenshots, and evidence
Impact and severity
Affected: users trying to run GPT-5.5 through Pi runtime with Codex OAuth, without
OPENAI_API_KEYand without Codex runtime.Severity: medium/high. The intended route cannot be selected cleanly, and the available workaround adds noisy repeated retries.
Frequency: profile/provider mismatch was observed on the manual pin path; encrypted-reasoning retry warnings recur repeatedly during normal legacy-workaround turns.
Consequence: users are pushed onto the legacy
openai-codex/gpt-5.5route or unwanted auth/runtime paths, with avoidable latency/noise and unclear supported configuration.Additional information
This may be one product bug with two related symptoms:
openai/gpt-5.5route cannot use anopenai-codexOAuth profile through the user-facing/model ...@profilevalidator.openai-codex/gpt-5.5) works but repeatedly retries after stripping encrypted reasoning content.If the canonical route is not meant to accept
openai-codexOAuth profiles, the docs/config guidance and validator should probably make the supported Pi + Codex OAuth shape explicit.