Repository navigation
fix: let GPT-6 Luna chat again on the ChatGPT/Codex subscription route - #201746
Conversation
|
🦞👀 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 changesPreserve chat eligibility for dual-capability models on alternate routes while removing route-specific Decision metadata. Example: Run openai/gpt-6-luna using openai-chatgpt-responses at https://chatgpt.com/backend-api/codex.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a released subscription-route regression still present on current main, with no actionable patch findings. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared catalog overlay combines declared model capabilities with configured transport routes; prepared catalogs feed model listings and chat admission. flowchart LR
A[Declared model catalog] --> C[Shared metadata overlay]
B[Configured transport route] --> C
C --> D[Prepared model catalog]
D --> E[Model listings]
D --> F[Chat admission]
F --> G[Configured provider transport]
Technical reviewBest possible solution: Land the focused shared-overlay repair after the existing exact-head CI gate passes. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically turns Luna's chat:true declaration into chat:false on the reported route; the linked exact-head proof independently records the failure before and successful CLI/Gateway responses after, without a new reviewer-run reproduction. Is this the best way to solve the issue? The patch repairs the existing metadata owner, removes duplicate inference assignment, covers endpoint and API changes, and preserves the distinct discovered-grant restriction rather than broadening provider merging. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3d99e4db2439. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +6, Tests +4. Total +10 across 2 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. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
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 HistoryReview history (1 earlier review cycle)
Reviewed November 21, 2026, 2:41 AM ET / 07:41 UTC (Revision 2). |
…aw#201513) Static dual chat/Decision rows keep chat on a changed route through the catalog overlay; mergeProviderModels keeps vetoing discovered decision-bearing grants on another route (openclaw#186596), so a typed-only ClawRouter Luna stays refused on the refreshed catalog. Replace the resolver table with one overlay regression.
…law#201513) An API-only route change skipped clearRouteBoundCatalogMetadata, so dropping the chat veto let Luna's Decision facts ride along onto the new route. The overlay now strips base inference and decides it once.
|
Proof for #201513 on head 781cd22 (base: main fd4807a; reporter release v2026.11.5 e13cf15). Tier: dist-nodts, built CLI and Gateway ( Setup: the issue's config verbatim ( |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged in 39a215a. Thanks @MertBasar0 for the fix and @Caitoz for the report in #201513. A model whose catalog row declares chat support, such as |
|
Thanks for the follow-up and for testing both PRs, @obviyus! I’d missed the API-only route change. Keeping Luna usable for chat without carrying over the Decision metadata was a good catch. |
openclaw#201746) Root cause: src/agents/model-catalog-metadata.ts:127 (and :57 in `clearRouteBoundCatalogMetadata`) on main 07aa1df turned any declared `inference` into `{ chat: false }` when the configured route differs from the catalog route, so GPT-6 Luna's `{ chat: true, decision }` catalog row became a chat veto on the ChatGPT/Codex subscription route. Fixes openclaw#201513 ## What Problem This Solves Since 2026.11.5, people who use GPT-6 Luna through a ChatGPT/Codex subscription get "does not support chat" on every turn, from `openclaw infer model run --local` and from the Gateway, before any request is sent. Other OpenAI models on the same route still work. ## User Impact User impact: `openai/gpt-6-luna` runs again on the ChatGPT/Codex subscription route, as it did on 2026.11.3. Models whose catalog says they cannot chat stay refused with the same message, and Luna's Decision settings stay tied to the OpenAI Platform route. ## Why This Change Was Made 2026.11.5 gave the bundled Luna row both chat and Decision capability (openclaw#176133). When the configured route differs from the catalog route, the catalog overlay drops route-bound facts, but it also replaced Luna's `chat: true` with `chat: false`. The overlay now decides inference once: on a changed route it keeps a veto only when the catalog row says `chat: false`, and otherwise drops the whole route-bound declaration, Decision facts included, so the model is treated as chat like the other OpenAI rows on that route. Two changes on top of @MertBasar0's commit: - The provider-config merge (`mergeProviderModels`) is left as on main. There a decision-bearing row is a discovered per-route grant, such as ClawRouter's granted Luna, and openclaw#186596 deliberately keeps vetoing it on another route because ClawRouter's catalog declares Luna typed-only (docs/providers/clawrouter.md). With the merge change, `utility-completion.clawrouter.test.ts` fails: the refreshed catalog lets typed-only ClawRouter Luna chat on a changed configured route. - With only the veto dropped, an API-only route change (which skips `clearRouteBoundCatalogMetadata`) let Luna's Decision facts ride along to the new route. The overlay now strips base inference and sets it once. Codex agrees on the subscription route: its backend `/models` metadata (`codex-rs/protocol/src/openai_models.rs:419-421`, `ModelInfo`) and `model/list` (`codex-rs/app-server/src/models.rs:16`, `model_from_preset`) carry no chat-or-Decision capability split, and `gpt-6-luna` is listed like any other agent model (`codex-rs/models-manager/models.json:1045`, `visibility: "list"`, `shell_type: "shell_command"`). Thanks @Caitoz for the report and the precise analysis, and @MertBasar0 for the fix this builds on. ## Evidence Real built CLI and Gateway with the issue's config verbatim (`openai-chatgpt-responses`, `https://chatgpt.com/backend-api/codex`, `auth: oauth`, `agentRuntime: openclaw`), a fixture ChatGPT OAuth profile and a local ChatGPT-backend fixture; the real bundled Codex app-server uses the same fixture. No real account. - Before (main 07aa1df; also v2026.11.5): `infer model run --local` fails with "This model doesn't support chat; pick another model." (2026.11.5: "Model openai/gpt-6-luna does not support chat inference"); Gateway `models.list` hides Luna and `chat.send` gets the same refusal. The fixture receives no model request. - After (this PR): `infer model run --local` returns `FIXTURE-ACK`; Gateway lists Luna and `chat.send` answers `FIXTURE-ACK`; the fixture logs `POST /backend-api/codex/responses model gpt-6-luna`. - Controls, same before and after: typed-only `clawrouter/openai/gpt-6-luna` granted chat on ClawRouter's endpoint but configured on another route is still refused with the existing message and sends nothing; Luna on its own Platform catalog route reaches the provider; Luna on the native Codex runtime answers through Codex. - Regression: one case in `model-catalog-inference.test.ts` (a `chat: true` + Decision row on a new endpoint or API keeps no inference). On main both routes fail with `expected { chat: false } to be undefined`; on the contributor commit alone the API route fails with `expected { chat: true, decision: … } to be undefined`. Observed proof lines: openclaw#201746 (comment) Merge danger: two-way door. Only in-memory catalog metadata changes; nothing is written or migrated, and a revert restores the old behavior. Blast radius: models whose bundled catalog row declares `chat: true` together with Decision facts, used on a non-catalog route; today that is only `openai/gpt-6-luna`. Co-authored-by: Ayaan Zaidi <[email protected]>
#201746) Root cause: src/agents/model-catalog-metadata.ts:127 (and :57 in `clearRouteBoundCatalogMetadata`) on main fd4807a turned any declared `inference` into `{ chat: false }` when the configured route differs from the catalog route, so GPT-6 Luna's `{ chat: true, decision }` catalog row became a chat veto on the ChatGPT/Codex subscription route. Fixes #201513 ## What Problem This Solves Since 2026.11.5, people who use GPT-6 Luna through a ChatGPT/Codex subscription get "does not support chat" on every turn, from `openclaw infer model run --local` and from the Gateway, before any request is sent. Other OpenAI models on the same route still work. ## User Impact User impact: `openai/gpt-6-luna` runs again on the ChatGPT/Codex subscription route, as it did on 2026.11.3. Models whose catalog says they cannot chat stay refused with the same message, and Luna's Decision settings stay tied to the OpenAI Platform route. ## Why This Change Was Made 2026.11.5 gave the bundled Luna row both chat and Decision capability (#176133). When the configured route differs from the catalog route, the catalog overlay drops route-bound facts, but it also replaced Luna's `chat: true` with `chat: false`. The overlay now decides inference once: on a changed route it keeps a veto only when the catalog row says `chat: false`, and otherwise drops the whole route-bound declaration, Decision facts included, so the model is treated as chat like the other OpenAI rows on that route. Two changes on top of @MertBasar0's commit: - The provider-config merge (`mergeProviderModels`) is left as on main. There a decision-bearing row is a discovered per-route grant, such as ClawRouter's granted Luna, and #186596 deliberately keeps vetoing it on another route because ClawRouter's catalog declares Luna typed-only (docs/providers/clawrouter.md). With the merge change, `utility-completion.clawrouter.test.ts` fails: the refreshed catalog lets typed-only ClawRouter Luna chat on a changed configured route. - With only the veto dropped, an API-only route change (which skips `clearRouteBoundCatalogMetadata`) let Luna's Decision facts ride along to the new route. The overlay now strips base inference and sets it once. Codex agrees on the subscription route: its backend `/models` metadata (`codex-rs/protocol/src/openai_models.rs:419-421`, `ModelInfo`) and `model/list` (`codex-rs/app-server/src/models.rs:16`, `model_from_preset`) carry no chat-or-Decision capability split, and `gpt-6-luna` is listed like any other agent model (`codex-rs/models-manager/models.json:1045`, `visibility: "list"`, `shell_type: "shell_command"`). Thanks @Caitoz for the report and the precise analysis, and @MertBasar0 for the fix this builds on. ## Evidence Real built CLI and Gateway with the issue's config verbatim (`openai-chatgpt-responses`, `https://chatgpt.com/backend-api/codex`, `auth: oauth`, `agentRuntime: openclaw`), a fixture ChatGPT OAuth profile and a local ChatGPT-backend fixture; the real bundled Codex app-server uses the same fixture. No real account. - Before (main fd4807a; also v2026.11.5): `infer model run --local` fails with "This model doesn't support chat; pick another model." (2026.11.5: "Model openai/gpt-6-luna does not support chat inference"); Gateway `models.list` hides Luna and `chat.send` gets the same refusal. The fixture receives no model request. - After (this PR): `infer model run --local` returns `FIXTURE-ACK`; Gateway lists Luna and `chat.send` answers `FIXTURE-ACK`; the fixture logs `POST /backend-api/codex/responses model gpt-6-luna`. - Controls, same before and after: typed-only `clawrouter/openai/gpt-6-luna` granted chat on ClawRouter's endpoint but configured on another route is still refused with the existing message and sends nothing; Luna on its own Platform catalog route reaches the provider; Luna on the native Codex runtime answers through Codex. - Regression: one case in `model-catalog-inference.test.ts` (a `chat: true` + Decision row on a new endpoint or API keeps no inference). On main both routes fail with `expected { chat: false } to be undefined`; on the contributor commit alone the API route fails with `expected { chat: true, decision: … } to be undefined`. Observed proof lines: #201746 (comment) Merge danger: two-way door. Only in-memory catalog metadata changes; nothing is written or migrated, and a revert restores the old behavior. Blast radius: models whose bundled catalog row declares `chat: true` together with Decision facts, used on a non-catalog route; today that is only `openai/gpt-6-luna`. Co-authored-by: Ayaan Zaidi <[email protected]> (cherry picked from commit 39a215a) Companion disposition: bundled dual chat/Decision row and catalog overlay/matching contracts are present-equivalent. Codex d32063f96c models-manager/models.json:700 and app-server/src/models.rs:16 confirm the subscription route exposes Luna as a normal model; no Codex fork changes needed. No later same-path or PR follow-ups. Co-authored-by: RomneyDa <[email protected]>
Root cause: src/agents/model-catalog-metadata.ts:127 (and :57 in
clearRouteBoundCatalogMetadata) on main fd4807a turned any declaredinferenceinto{ chat: false }when the configured route differs from the catalog route, so GPT-6 Luna's{ chat: true, decision }catalog row became a chat veto on the ChatGPT/Codex subscription route.Fixes #201513
What Problem This Solves
Since 2026.11.5, people who use GPT-6 Luna through a ChatGPT/Codex subscription get "does not support chat" on every turn, from
openclaw infer model run --localand from the Gateway, before any request is sent. Other OpenAI models on the same route still work.User Impact
User impact:
openai/gpt-6-lunaruns again on the ChatGPT/Codex subscription route, as it did on 2026.11.3. Models whose catalog says they cannot chat stay refused with the same message, and Luna's Decision settings stay tied to the OpenAI Platform route.Why This Change Was Made
2026.11.5 gave the bundled Luna row both chat and Decision capability (#176133). When the configured route differs from the catalog route, the catalog overlay drops route-bound facts, but it also replaced Luna's
chat: truewithchat: false. The overlay now decides inference once: on a changed route it keeps a veto only when the catalog row sayschat: false, and otherwise drops the whole route-bound declaration, Decision facts included, so the model is treated as chat like the other OpenAI rows on that route.Two changes on top of @MertBasar0's commit:
mergeProviderModels) is left as on main. There a decision-bearing row is a discovered per-route grant, such as ClawRouter's granted Luna, and fix(agents): subagent spawn rejects configured ClawRouter models as not chat-capable #186596 deliberately keeps vetoing it on another route because ClawRouter's catalog declares Luna typed-only (docs/providers/clawrouter.md). With the merge change,utility-completion.clawrouter.test.tsfails: the refreshed catalog lets typed-only ClawRouter Luna chat on a changed configured route.clearRouteBoundCatalogMetadata) let Luna's Decision facts ride along to the new route. The overlay now strips base inference and sets it once.Codex agrees on the subscription route: its backend
/modelsmetadata (codex-rs/protocol/src/openai_models.rs:419-421,ModelInfo) andmodel/list(codex-rs/app-server/src/models.rs:16,model_from_preset) carry no chat-or-Decision capability split, andgpt-6-lunais listed like any other agent model (codex-rs/models-manager/models.json:1045,visibility: "list",shell_type: "shell_command").Thanks @Caitoz for the report and the precise analysis, and @MertBasar0 for the fix this builds on.
Evidence
Real built CLI and Gateway with the issue's config verbatim (
openai-chatgpt-responses,https://chatgpt.com/backend-api/codex,auth: oauth,agentRuntime: openclaw), a fixture ChatGPT OAuth profile and a local ChatGPT-backend fixture; the real bundled Codex app-server uses the same fixture. No real account.infer model run --localfails with "This model doesn't support chat; pick another model." (2026.11.5: "Model openai/gpt-6-luna does not support chat inference"); Gatewaymodels.listhides Luna andchat.sendgets the same refusal. The fixture receives no model request.infer model run --localreturnsFIXTURE-ACK; Gateway lists Luna andchat.sendanswersFIXTURE-ACK; the fixture logsPOST /backend-api/codex/responses model gpt-6-luna.clawrouter/openai/gpt-6-lunagranted chat on ClawRouter's endpoint but configured on another route is still refused with the existing message and sends nothing; Luna on its own Platform catalog route reaches the provider; Luna on the native Codex runtime answers through Codex.model-catalog-inference.test.ts(achat: true+ Decision row on a new endpoint or API keeps no inference). On main both routes fail withexpected { chat: false } to be undefined; on the contributor commit alone the API route fails withexpected { chat: true, decision: … } to be undefined.Observed proof lines: #201746 (comment)
Merge danger: two-way door. Only in-memory catalog metadata changes; nothing is written or migrated, and a revert restores the old behavior. Blast radius: models whose bundled catalog row declares
chat: truetogether with Decision facts, used on a non-catalog route; today that is onlyopenai/gpt-6-luna.