-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: Compaction resets session model override to previous provider #95696
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.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: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.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: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
After switching models via
/modelin a session, the UI correctly reflects the new model. However, once compaction triggers, the session's model override is lost and the actual API call reverts to the previous model provider.Steps to reproduce
custom-127-0-0-1-1234/qwen/Qwen3.6-27b)/model deepseek-v4-pro(custom-api-deepseek-com/deepseek-v4-pro)/model qwen3.6-27b-q8Expected behavior
After compaction, the session should retain the user's most recently selected model.
Actual behavior
After compaction, the model override is overwritten and reverts to the pre-compaction model (DeepSeek), causing a mismatch between the UI display and the actual model being called.
OpenClaw version
2026.6.9 (c645ec4)
Operating system
Linux 6.6.114.1-microsoft-standard-WSL2
Install method
No response
Model
custom-127-0-0-1-1234/qwen/Qwen3.6-27b
Provider / routing chain
custom-127-0-0-1-1234/qwen/Qwen3.6-27b
Additional provider/model setup details
custom-127-0-0-1-1234/qwen/Qwen3.6-27bcustom-api-deepseek-com/deepseek-v4-prosession_statusshows Qwen, but actual API requests are routed to DeepSeek. This is a discrepancy between UI state and runtime behavior.Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response