-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Windows provider switch leaves stale model/provider config and session cache #88372
Copy link
Copy link
Open
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.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: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.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: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
Summary
Provider switching after Windows onboarding can leave stale model/provider config and session cache behind. The visible active provider/model can disagree with the actual provider used for the request, producing misleading cross-provider errors.
In the HeraldLabs repro, the user switched across providers, but stale model references and session cache continued to force old provider/model paths until manual config editing and session file deletion.
Environment
2026.5.27 (27ae826)v24.16.0Reproduction path A: partial provider config becomes unexpected fallback
openclaw tuiand send the bootstrap/first message.Observed A
The TUI showed the active provider/model as Groq:
But the request failed with a Google auth error:
The error did not explain why Google was being used while the UI displayed Groq.
Reproduction path B: provider/model switch does not update all config/session references
openclaw tui.claude-opus-4-6access.agents.defaults.model.primaryis correct, but stale model IDs remain elsewhere.claude-opus-4-6references in config.openclaw tuiagain.Expected result
Switching provider/model should update all effective model references or clearly report the remaining stale reference. Gateway restart should not keep using an old session/provider cache after config changes.
Actual result
agents.defaults.model.primarymodels.providers.litellm.models[].idsessions.json.Impact
High. A technically capable tester needed over an hour and direct team support to recover. A beginner user would likely abandon the install.
Suggested fix
Related
Related conceptually to #8190, but this is a concrete Windows onboarding/provider-switch repro with stale config references and session cache.
Source
HeraldLabs beta QA report from Miriam Peter, 2026-05-30.