fix(status): show actual routed model in /status overview row instead of configured default#23866
Closed
Asm3r96 wants to merge 2 commits into
Closed
fix(status): show actual routed model in /status overview row instead of configured default#23866Asm3r96 wants to merge 2 commits into
Asm3r96 wants to merge 2 commits into
Conversation
… of configured default
Asm3r96
force-pushed
the
fix/23830-status-card-model-mismatch
branch
from
February 24, 2026 18:46
4486646 to
523ab5c
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
openclaw statusOverview "Sessions" row always displayed the statically configured model (e.g.gemini-pro) even when a fallback was active and the agent was actually using a different model (e.g.gemini-flash). The per-session table below it already showed the correct model, creating a confusing mismatch./statusto verify which model is in use during a fallback received incorrect information in the most prominent overview line.status.command.tsnow resolvesactiveModelassummary.sessions.recent[0]?.model ?? defaults.model ?? \"unknown\"— preferring the most recent session's runtime model (already correctly written to the session store after every run, including fallback runs) over the static configured default.resolveSessionModelRef, the session store write path,model-fallback.ts,status.summary.ts, and all types are untouched. This is a pure display fix in the overview row.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
The
Sessionsline inopenclaw statusOverview now shows the model currently in use (fallback or primary) rather than always showing the configured default model.Security Impact (required)
Repro + Verification
Environment
Steps
agents.defaults.model.primary: gemini-pro,fallbacks: [gemini-flash])openclaw statusExpected
Sessionsrow showsgemini-flash(the actual model in use)Actual (before fix)
Sessionsrow showedgemini-pro(the configured default) while the per-session table below correctly showedgemini-flashEvidence
"shows actual session model in overview row when it differs from configured default"test insrc/commands/status.test.ts; all 8 tests passHuman Verification (required)
model: "google:gemini-flash"while config default differs — overview row correctly showsgemini-flashdefaults.model), session with null model (falls back todefaults.model), session with matching model (no visible change)Compatibility / Migration
Failure Recovery (if this breaks)
status.command.ts(restoredefaults.modelin the Sessions overview row)src/commands/status.command.tsRisks and Mitigations
modelfield, the overview row would show it. Mitigation: This was already the case for the per-session table; the session store write path (persistSessionUsageUpdate) always records the actual model used, so stale values are only possible if the session never ran a successful turn.Greptile Summary
Fixed the
/statusoverview row to show the actual runtime model (including fallbacks) instead of always showing the configured default model. The implementation correctly usessummary.sessions.recent[0]?.modelwith proper fallback chain todefaults.modeland then"unknown".status.command.ts:268to resolveactiveModelfrom most recent session's model fieldstatus.command.ts:385)CHANGELOG.mdwith user-facing fix descriptionThe change is minimal, focused, and aligns with the existing data flow where session entries already store the runtime model (populated during execution including fallback scenarios).
Confidence Score: 5/5
Last reviewed commit: d009211