openclaw/src/status
LZY3538 a6352f9356
fix(status): surface auto-fallback model in status and session_status (#96126) (#101337)
* @
fix(status): surface auto-fallback model in status and session_status (#96126)

When a session falls back to an alternate model via auto-fallback
(modelOverrideSource: "auto"), both `openclaw status` and `session_status`
silently showed the active fallback model without indicating it differs
from the configured primary. The mismatch gate used
hasUserPinnedModelSelection() which returns false for auto-fallback.

- status.summary.ts: widen mismatch gate from hasUserPinnedModelSelection
  to entry?.modelOverride != null; emit distinct "fallback selected"
  reason alongside existing "session override"
- status.command-sections.ts: add fallback-specific wording ("auto
  fallback" / "check provider availability") while keeping the
  modelSelectionReason filter intact (no false-positive null-reason rows)
- status-message.ts: add sessionHasAutoFallback detection for the
  session_status RPC path; show "auto fallback" / "check provider" label
  instead of "pinned session" / "clear /model default"

Co-Authored-By: Claude <noreply@anthropic.com>
@

* fix(status): narrow fallback detection to real fallback provenance

Replace entry?.modelOverride != null with
hasSessionAutoModelFallbackProvenance(entry) to avoid mislabeling
configured subagent automatic model selections as provider fallback.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(status): distinguish configured models from fallback

Co-authored-by: LZY3538 <liu.zhenye@xydigit.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-07 09:17:58 +01:00
..
agent-runtime-label.ts
codex-synthetic-usage.test.ts feat: add Anthropic and OpenAI cost history (#100672) 2026-07-06 12:06:55 +01:00
codex-synthetic-usage.ts feat: add Anthropic and OpenAI cost history (#100672) 2026-07-06 12:06:55 +01:00
fallback-notice-state.ts
status-message.runtime.ts
status-message.test.ts fix(status): surface auto-fallback model in status and session_status (#96126) (#101337) 2026-07-07 09:17:58 +01:00
status-message.ts fix(status): surface auto-fallback model in status and session_status (#96126) (#101337) 2026-07-07 09:17:58 +01:00
status-plugin-health.installed.test.ts fix(status): surface unregistered memory embedding providers (#97968) 2026-07-01 00:46:49 -07:00
status-plugin-health.runtime.test.ts fix(status): distinguish runtime-loaded plugins from installed inventory (#97479) 2026-06-28 10:44:56 -07:00
status-plugin-health.runtime.ts fix(status): surface unregistered memory embedding providers (#97968) 2026-07-01 00:46:49 -07:00
status-plugin-health.test.ts improve(status): group disabled plugins by reason in /status plugins (#99598) 2026-07-06 01:22:42 -07:00
status-plugin-health.ts improve(status): group disabled plugins by reason in /status plugins (#99598) 2026-07-06 01:22:42 -07:00
status-queue.runtime.ts
status-subagents.runtime.ts
status-text.test.ts test: speed up and stabilize full suite 2026-07-05 08:00:23 -04:00
status-text.ts feat: show auto-detected provider plans and billing (#100520) 2026-07-06 04:53:09 +01:00
status-text.types.ts feat: forward-port fast talks auto mode (#85104) 2026-06-22 09:37:09 +08:00