Repository navigation
feat: support GPT-5.6 Ultra across OpenClaw and Codex runtimes - #98021
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 10, 2026, 10:15 AM ET / 14:15 UTC. Summary Reproducibility: not applicable. This PR introduces a cross-runtime feature rather than fixing one narrowly reproducible current-main bug; the high-confidence verification path is its live embedded and native Codex scenarios plus focused persistence and switching tests. Review metrics: 2 noteworthy metrics.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Adopt the single runtime-aware thinking and session contract as one coherent implementation if maintainers approve the new onboarding defaults and public SDK seam; preserve existing explicit user selections, keep provider wire lowering capability-gated and non-escalating, and require exact-head CI/merge validation before landing. Do we have a high-confidence way to reproduce the issue? Not applicable. This PR introduces a cross-runtime feature rather than fixing one narrowly reproducible current-main bug; the high-confidence verification path is its live embedded and native Codex scenarios plus focused persistence and switching tests. Is this the best way to solve the issue? Yes for the implementation shape: resolving the effective agent runtime once and carrying that prepared fact through provider policy, validation, persistence, and UI projection is more maintainable than channel-specific inference or a generic AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 067edbcb2d66. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (12 earlier review cycles; latest 8 shown)
|
|
Re-scoped this PR based on the review feedback and the actual Codex Ultra contract. Key correction: Ultra is no longer treated as a generic Sanitized real-behavior proof: Validation on the revised branch:
The PR body now includes the full semantics, proof, validation, and non-goals. |
|
@clawsweeper re-review Current head addresses the deterministic CI failures exposed by adding the global Behavior fixed:
Current head: Validation:
Please re-evaluate the current head for transition toward maintainer review. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Current head: Behavior addressed:
Real setup tested:
Exact steps or command run after this patch:
Evidence after fix: {
"proofKind": "pr-98021-current-head-source-bridge",
"catalogCompatEfforts": ["low", "medium", "high", "xhigh", "max", "ultra"],
"catalogThinkingLevelMap": {
"minimal": null,
"low": "low",
"medium": "medium",
"high": "high",
"xhigh": "xhigh",
"max": "max",
"ultra": "ultra"
},
"requestedThinkLevel": "ultra",
"turnStartEffort": "ultra",
"collaborationReasoningEffort": "ultra",
"unsupportedUltraFallbackEffort": "max"
}Observed result after fix:
Validation result:
What was not tested:
|
|
🦞🧹 I asked ClawSweeper to review this item again. |
Co-authored-by: J Cai <[email protected]>
|
Land-ready on exact head
The available OAuth live fixture remains expired/reused, so API-key live execution is the authoritative provider proof; deterministic OAuth setup/provider tests cover model selection. Repo-native |
|
Merged via squash.
|
Mantis Telegram Desktop ProofSummary: Mantis captured native Telegram Desktop before/after evidence for the status runtime display.
Motion-trimmed clips: |


Related: #98296, #103324
Builds on #98333, #103510, and #103581. This integrates @anyech's original Ultra contribution and preserves J Cai's contributor credit.
What Problem This Solves
GPT-5.6 Sol, Terra, and Luna are first-class OpenAI models, but Ultra behavior was not coherent across OpenClaw's embedded runtime and the native Codex app-server runtime. Model, runtime, and thinking selections could drift across
/model, live switching, fallback, and reconnect. The embedded runtime could also request maximum inference effort without representing Ultra's proactive sub-agent semantics.Native Codex Sol/Terra use multi-agent V2, whose spawn lifecycle is emitted as
subAgentActivityrather than the V1collabAgentToolCall. OpenClaw previously ignored that V2 event: the child ran and replied, but no OpenClaw task row was created or delivered.Why This Change Was Made
ultrawhile preserving legacyultrathink -> high./model,/think, fallback, cron, ACP, Gateway, TUI, Control UI, channel commands, and plugin execution.maxwire effort plus run-scoped proactive sub-agents.subAgentActivityinto the shared task lifecycle while reusing the trusted child completion/transcript delivery path.User Impact
openai/gpt-5.6.openai/gpt-5.6-sol.ultrathinkkeeps its established High behavior.Evidence
3faec2226160e7e0b97d42456404a43fad42a226.effort=max: https://github.com/openclaw/openclaw/actions/runs/29098717215openai/gpt-5.6): https://github.com/openclaw/openclaw/actions/runs/29098718679The release-gate build initially exposed an unrelated current-main Control UI raw-copy baseline drift from #103657. Main repaired that generated baseline in
53058123fc01; this final head is rebased onto the repair, and the exact i18n check plus build-artifacts lane pass.Codex contract checked
Current Codex source advertises Sol, Terra, and Luna separately, carries
ReasoningEffort::Ultra, derives proactive multi-agent mode for Ultra, preserves model changes within a thread when the protocol version is compatible, maps Ultra to provider-compatiblemaxonly at the inference boundary, and emits V2 child identity throughsubAgentActivity.Known live-auth limitation
The available OAuth fixture is stale/reused and refreshes fail with
token_expired/refresh_token_reused. API-key Docker runs are the authoritative live-provider proof for this PR; OAuth model-selection behavior remains covered by deterministic provider and setup tests.