Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without a crash)
Beta release blocker
No
Summary
In Control UI WebChat, + New Session can show Default (<configured default model>) in the model picker while the first message is actually routed through the previously selected parent session's non-default model override.
Steps to reproduce
- Configure the default model as model A.
- In an existing WebChat dashboard session, select a different model B and send a message so that session persists a user model override.
- While that session is selected, click
+ New Session. - Observe that the new session's model picker displays
Default (model A). - Send the first message without changing the displayed picker selection.
- Inspect the model used for that run or the new session's trajectory.
Expected behavior
A new session that displays Default (model A) should route its first message to model A, or the UI should visibly show that it will inherit model B before the user sends a message.
Selecting the configured default in the new session should also provide a way to override any inherited parent model choice.
Actual behavior
The new session routes its first message to model B, even though its picker displays Default (model A).
In an observed run on OpenClaw 2026.5.19, the child session's first runtime event and all subsequent events used the parent's non-default model. There was no request to the configured default model and no fallback event.
Environment
- OpenClaw version:
2026.5.19 - UI/channel: Control UI WebChat dashboard
- Install method: npm global
- OS: Linux
- Models: reproduced with configured default
openai/gpt-5.5and parent overrideqwen/qwen3.6-plus - Routing: direct configured providers; no proxy/router needed to reproduce
Evidence and apparent cause
Inspection of the installed 2026.5.19 distribution shows:
- The
+ New Sessioncontrol callssessions.createwith the currently selected dashboard session asparentSessionKey. - The newly created child has no direct
modelOverride; the picker therefore renders the configured default label. - The first
chat.senddoes not carry the displayed picker model. - Runtime stored-model resolution falls back to the parent's persisted override when the child has no direct override.
- When the user chooses a model that equals the configured default,
sessions.patchclears direct override fields rather than storing an explicit child-level "use default" selection, so the parent override continues to win.
This creates a user-visible mismatch: the model picker says the next request will use the default model, but effective routing uses the parent model.
Impact and severity
- Affected users: Control UI WebChat users who create a session while viewing a session with a non-default model override.
- Severity: moderate; requests silently run on an unexpected model/provider.
- Frequency: deterministic under the reproduction steps above.
- Consequence: unexpected subscription/quota usage, cost/capability changes, and misleading diagnosis as a provider fallback or outage.
Related issues
- [Bug]: WebChat model selector shows global default instead of agent-specific default model #77440 describes a different default-label mismatch involving per-agent defaults. This report concerns inherited parent session overrides on
+ New Session. - Add per-turn (one-shot) model override to sessions.patch and chat-send payload #83565 requests per-turn overrides. This bug occurs with existing session creation and picker behavior even without requesting a per-turn override.
Suggested behavior
Any of the following would avoid silent misrouting:
- Create a genuinely independent new session from
+ New Session, unless inheritance is explicitly requested. - Represent and display the effective inherited model in the child session picker.
- Support an explicit child-level "use configured default, do not inherit parent override" state.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 24, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 6, 2026, 11:42 AM ET / 15:42 UTC.
Summary
Keep open: selecting Default still clears the child’s selection and permits the parent’s model override to win. Untouched-child inheritance has improved, but the remaining defect is already owned by the linked open repair PR.
Reproducibility: yes. by source inspection: create a child of a parent pinned to model B, select Default A, then resolve the next turn; clearing the child override exposes B again. No runtime reproduction was executed in this read-only review.
Next step
Review and resolve #131805 before closing this issue; another repair PR would duplicate active work.
Review details
Best possible solution:
Persist explicit Default intent across session lifecycle operations and use the same effective selection for display and routing while preserving untouched-child inheritance.
Do we have a high-confidence way to reproduce the issue?
Yes, by source inspection: create a child of a parent pinned to model B, select Default A, then resolve the next turn; clearing the child override exposes B again. No runtime reproduction was executed in this read-only review.
Is this the best way to solve the issue?
Yes, durable Default intent at the shared selection owner is the appropriate repair direction. The linked PR addresses that boundary; preserving concrete pins equal to the default is a separate documented-contract change.
AGENTS.md: found and applied where relevant.
Codex review notes: model internal, reasoning medium; reviewed against f748b91a8e58.
Label changes
Label justifications:
P2: The defect silently selects an unexpected model in a bounded child-session workflow without blocking general chat availability.impact:session-state: Clearing a child’s direct model selection loses the user’s intent to stop inheriting its parent’s pin.impact:auth-provider: The next turn can use the parent’s provider/model despite the user selecting Default.Evidence reviewed
What I checked:
src/sessions/model-overrides.ts:71, 9d20f0b07acc)src/sessions/stored-model-overrides.ts:91, 9d20f0b07acc)src/gateway/session-create-service.ts:1335, 9d20f0b07acc)src/sessions/model-overrides.ts:71, 3928bad9badf)docs/concepts/models.md. (docs/concepts/models.md:283, 9d20f0b07acc)Likely related people:
How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.kumaxs commentedon Jun 10, 2026
Additional reproduction: WebChat shows wrong model in session header
Session UI (webchat) displays the configured default model (M3) in the chat box footer, but the actual session is running a different model (M2.7). Verified via session_status which shows minimax/MiniMax-M2.7 as the actual model.
Environment: OpenClaw 2026.6.1, webchat channel
Expected fix: UI should display the actual model from session metadata, not the configured default.
NowHeaven commentedon Jul 24, 2026
Confirmed and root-caused on OpenClaw
2026.7.1-2(npm global, Windows x64). The original report describes the exact issue; here's code-level evidence.Reproduction verified live
kimi/k3(user)+ New Session→ child created withparentSessionKey= parentDefault (deepseek/deepseek-v4-pro)sessions.patchpayload ={"model":"deepseek/deepseek-v4-pro"}— correctkimi/k3— parent's non-default override winsRoot cause: two-path semantic conflict
Path A —
projectSessionsPatchEntry(session-create-service-*.js): resolved model == configured default →isDefault=true→ deletes all override fields and runtime cache. Semantics: "no override = use default".Path B —
resolveStoredModelOverride(stored-model-override-*.js):Path B says "no override = inherit parent". For sessions with
parentSessionKey, selecting the configured default can never reach the default — the parent override always shadows it. Non-default models work fine (write direct source:"session" override).Observed parent chain
dcf8f779 → 1212b97e(override=kimi/k3, source:user) → 70274004(debug session: override cleared, dispatches kimi/k3)Fix suggestion
A)
resolveStoredModelOverrideskip inheritance when child has provenance indicating explicit set/clear.B) Patch path write explicit child override (source:"user") when default+parent override exist, instead of deleting.
Dist code locations (2026.7.1)
stored-model-override-[hash].js:resolveStoredModelOverride— parent chain fallbacksession-create-service-[hash].js:projectSessionsPatchEntry— isDefault clearingdispatch-[hash].js:resolveStoredModelCandidate— dispatch entry pointlive-model-switch-[hash].js:resolveLiveSessionModelSelection— no parent walk (third inconsistent path)Secondary UX
Selector silently disabled during active runs with zero feedback.
15 remaining items
wpu911 commentedon Sep 6, 2026
Confirmed on released OpenClaw 2026.9.2 on Windows (npm global) with a local OpenAI-compatible provider. I reproduced an additional persistence edge of the same model-selection intent problem.
Reproduction (no inference required)
Configured default:
local-llm/qwen3.8-27b:256kParent dashboard session explicitly pinned to:
local-llm/qwen3.6-35b:256kThen create a child with
parentSessionKey=<parent>and explicitly request the concrete configured-default modellocal-llm/qwen3.8-27b:256k.Before my local patch,
sessions.createreturned the child as resolved to qwen3.8, but the persisted entry did not contain:providerOverridemodelOverridemodelOverrideSourceA subsequent session projection showed
model=qwen3.8-27b:256kwithmodelOverrideSource=null.So a concrete user choice that happens to equal the configured default is collapsed into "no direct selection". That loses the distinction between these two intents:
That distinction matters when the configured default later changes, and it also matters for parent/child selection semantics.
Local validation of the intended semantics
I patched the installed 2026.9.2 bundle so that a concrete model selection remains a user pin even if it currently equals the configured default, while an explicit Default /
model:nullremains the operation that clears the direct pin.After the patch, creating the same child with explicit qwen3.8 persisted:
I also tested parent/child independence in both directions using empty dashboard sessions:
model:nullstill cleared the direct override.Why this seems relevant to #131805
The important invariant is that target identity is not the same thing as user intent.
selected model == configured defaultshould not by itself imply "follow default". A concrete model selection should remain concrete; an explicit Default action should carry the follow-default semantics/provenance.PR #131805 appears aligned with this broader intent separation for child/default inheritance. The 2026.9.2 release still reproduces the persistence ambiguity described above.
wpu911 commentedon Sep 8, 2026
Confirmed on OpenClaw 2026.9.2 (Windows) with real downstream request captures
I can still reproduce this on OpenClaw 2026.9.2 on Windows 10 x64 / Node.js v22.23.2.
My setup uses the Control UI WebChat dashboard with an OpenAI-compatible local model provider. The configured default model is:
The parent dashboard session had an explicit user override:
A child dashboard session was shown / intended to use the default model, but the actual downstream request capture was:
So this was not a provider/router alias problem. OpenClaw itself resolved and sent the parent's Qwen3.6 override.
Root cause observed locally
The installed 2026.9.2 bundle still walks
parentSessionKeyfrom stored-model override resolution when the current dashboard child has no direct model override.Effectively:
This matches the behavior described in this issue.
Local production hotfix
For testing, I applied a narrow local patch in the bundled stored-model-override resolver so that an operator-created dashboard child session with no direct model override does not revive a parent dashboard's user override, and instead resolves to the configured default.
I intentionally did not remove parent-model inheritance globally. Explicit spawn/subagent inheritance behavior was left untouched.
After clearing the child's direct override, session state became:
The parent's own user override remained unchanged.
Real request verification
First
chat.sendafter the patch:Second consecutive
chat.sendon the same child session:The second turn is useful evidence because it proves both that the child stayed on Ornith instead of falling back to the parent's Qwen3.6 override, and that the Ornith KV prefix was reused normally on the next turn.
Relation to PR #131805
I also found the open fix PR: #131805
fix: keep new-session model display and routing aligned.That PR takes a more complete product-level approach than my emergency local patch: it preserves intentional inherited-child behavior, makes the effective inherited model visible, and treats an explicit
Defaultselection as a durable barrier to parent inheritance.So I am not proposing my bundled hotpatch as the exact upstream implementation. I am posting this as additional runtime confirmation that:
2026.9.2;The key invariant should be: the model shown/selected in Control UI must match the model that will actually handle the next request.