Repository navigation
fix: Luna utility completions fail through Codex - #196640
roboclaw-bot wants to merge 1 commit into
Conversation
Worked on by: - @Marvinthebored Co-authored-by: Marvinthebored <[email protected]> OpenClaw-Publication: c7c47b74-c377-4f12-b43f-03a37a124f3b
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR filters unsupported Codex temperature parameters and makes internal utility sampling defaults advisory on subscription routes. Example: An Activity recap uses openai/gpt-6-luna with a 240-token budget and temperature 0.2.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a source-confirmed regression with a focused patch and no actionable code findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGateway utility tasks enter the shared completion owner, which prepares the selected model and credential before Codex performs isolated inference and returns text. flowchart LR
A[Utility task] --> B[Utility completion owner]
B --> C[Isolated completion owner]
C --> D[Codex sampling policy]
D --> E[Native Codex runtime]
E --> F[Selected provider route]
F --> G[Utility result]
Technical reviewBest possible solution: Retain the existing completion owners, capability-aware temperature filtering, advisory internal defaults, and strict explicit limits while coordinating one landing path with the overlapping PRs. Do we have a high-confidence way to reproduce the issue? Current-main source carries recap temperature into the Codex relay without capability filtering, matching the reporter's side-by-side API responses and fallback trace; no target code was executed during this review. Is this the best way to solve the issue? The patch is a small complete repair using existing owners and the shared temperature policy, with distinct coverage for wire parameters, native dispatch, account selection, and explicit limits. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5ac21026addd. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +25, Tests +57, Docs +9, Other +2. Total +93 across 13 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 10, 2026, 6:43 AM ET / 11:43 UTC. |
|
Superseded by 196641, thanks @obviyus |
Closes #196617
Regression introduced by #177227. Related: #196344.
What Problem This Solves
Fixes: Luna utility tasks fail through Codex because internal sampling defaults are forwarded to routes that do not support them, affecting Activity recaps, session assessments, and progress narration.
User Impact
Utility completions can retain their selected ChatGPT subscription or API-key route instead of failing or relying on another model. No configuration changes, credential substitutions, or billing-route changes are introduced.
Internal utility sampling and output-budget defaults are advisory on subscription routes. Explicit caller token caps retain required-limit behavior unless the caller explicitly opts into advisory mode. API-key output limits remain intact.
Draft proof gaps: live Gateway/Luna verification and the complete SDK-wide API comparison remain unverified; details below. No running Gateway was changed or restarted.
Why This Change Was Made
Codex now reuses the normal OpenAI transport's temperature-capability policy, honoring catalog overrides rather than maintaining another model-name rule. The shared utility-completion owner marks internal defaults as preferred, and the existing Codex completion owner omits them for native ChatGPT subscription and token-sharing routes. Explicit isolated requests remain strict by default.
This covers the shared utility path rather than removing temperature separately from each caller. It overlaps the narrower token-sharing advisory-mode proposal in #196344 and adds API-key model-capability filtering plus legacy subscription coverage.
Simplification: one existing temperature policy, one utility-intent owner, no new configuration or state. Production delta is +25 lines; +57 test lines extend existing wire, native-process, account-ownership, and budget-propagation suites, with a matching test-line allocation.
Evidence
Reported by @Marvinthebored. Related advisory-sampling work: #196344 by @jason-allen-oneal.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by