Skip to content

Commit 195dddb

Browse files
LZY3538claude
andcommitted
fix(status): use fallback-specific wording for auto-fallback model mismatches
Distinguish auto-fallback model selections from user-pinned overrides in the status mismatch output: - "is pinned to" → "is running (auto fallback)" for fallback selections - "/model default" → "check provider availability or retry with /model" Preserves pinned-session wording when modelSelectionReason is null or "session override". Per ClawSweeper rank-up recommendation. Co-Authored-By: Claude <[email protected]>
1 parent bb00a7c commit 195dddb

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

src/commands/status.command-sections.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,14 +389,20 @@ export function buildStatusModelSelectionLines(params: {
389389
const key = params.shortenText(sess.key, 48);
390390
const configured = sess.configuredModel ?? "unknown";
391391
const selected = sess.selectedModel ?? "unknown";
392+
const isFallback = sess.modelSelectionReason === "fallback selected";
393+
const intro = isFallback
394+
? `Session ${key} is running ${selected} (auto fallback); config primary is ${configured}.`
395+
: `Session ${key} is pinned to ${selected}; config primary ${configured} will apply to new/unpinned sessions.`;
396+
const reasonLine = ` Reason: ${sess.modelSelectionReason ?? "session override"}`;
397+
const clearLine = isFallback
398+
? " Action: check provider availability or retry with /model"
399+
: " Clear with: /model default";
392400
lines.push(
393-
params.warn(
394-
`Session ${key} is pinned to ${selected}; config primary ${configured} will apply to new/unpinned sessions.`,
395-
),
401+
params.warn(intro),
396402
` Configured default: ${configured}`,
397403
` Session selected: ${selected}`,
398-
` Reason: ${sess.modelSelectionReason ?? "session override"}`,
399-
" Clear with: /model default",
404+
reasonLine,
405+
clearLine,
400406
" Docs: https://docs.openclaw.ai/concepts/models#selection-source-and-fallback-behavior",
401407
);
402408
}

0 commit comments

Comments
 (0)