Skip to content

Comments

fix(status): show configured model instead of last-run model#396

Closed
azade-c wants to merge 1 commit intoopenclaw:mainfrom
azade-c:fix/status-model-display
Closed

fix(status): show configured model instead of last-run model#396
azade-c wants to merge 1 commit intoopenclaw:mainfrom
azade-c:fix/status-model-display

Conversation

@azade-c
Copy link
Contributor

@azade-c azade-c commented Jan 7, 2026

Summary

Fix /status to show the configured model (or override) instead of the last-run model.

Problem

/status was showing entry.model which stores the model from the last agent run (e.g. a heartbeat on Haiku). This caused confusion when the configured model was different (e.g. Opus).

Example:

  • Config: agent.model.primary = "anthropic/claude-opus-4-5"
  • Last heartbeat ran on Haiku
  • /status showed "claude-haiku-4-5" ❌

Fix

Use modelOverride / providerOverride (user selection) or resolved (configured model) instead of entry.model / entry.modelProvider (last-run model).

- entry?.modelProvider ?? resolved.provider ?? DEFAULT_PROVIDER;
- entry?.model ?? resolved.model ?? DEFAULT_MODEL;
+ entry?.providerOverride ?? resolved.provider ?? DEFAULT_PROVIDER;
+ entry?.modelOverride ?? resolved.model ?? DEFAULT_MODEL;

Now /status shows:

  1. The model override if user switched with /model
  2. Otherwise the configured model from agent.model.primary

@steipete
Copy link
Contributor

steipete commented Jan 7, 2026

Thanks ! Welcome to the Clawtributors! Say hi on Discord!

@steipete steipete self-assigned this Jan 7, 2026
@steipete
Copy link
Contributor

steipete commented Jan 7, 2026

Merged via local integration branch. Applied commits: 2b09cb3 (status uses configured/override model), aba4695 (status override test), 0603aaa (changelog). Tests: pnpm lint, pnpm build, pnpm test.

@steipete
Copy link
Contributor

steipete commented Jan 7, 2026

Merged manually on main via 2b09cb3, aba4695, 0603aaa.

@steipete steipete closed this Jan 7, 2026
@azade-c azade-c deleted the fix/status-model-display branch January 9, 2026 11:42
dgarson added a commit to dgarson/clawdbot that referenced this pull request Feb 9, 2026
…stions, threshold validation, and power-user gating (openclaw#396)

* feat: add Debug & Logging config section to Settings UI

Add a new "Debug & Logging" section in the Admin/Power User settings
that provides a full UI for tuning openclaw.json logging and debugging
configuration. Gated behind Power User Mode.

Covers:
- Log level / console level / console style selectors
- Redact sensitive toggle
- Enhanced logging feature toggles (tool errors, perf outliers, etc.)
- Performance threshold sliders (tool call, agent turn, gateway, db op)
- Token warning threshold sliders
- Tool journal config (enable, file path, retention, redaction)
- Suppress subsystem debug logs tag list
- Channel debug overrides (add/remove with verbose/debug/trace/suppress)
- Feature debug overrides (add/remove with verbose/debug/trace/suppress)
- Sticky save/reset bar with dirty state tracking

https://claude.ai/code/session_011WdpEacHmK1fMQMFiD3Szu

* fix: address data loss, UX gaps, and missing fields in debug/logging config

Fixes:
- Preserve ALL config fields on save (file, redactPatterns, journal.toolFilter,
  enhanced.gatewayHealthSuppressMethods) via index signature and full-object
  patching — previously saving clobbered unmodeled fields
- Fix dead ternary in enhanced logging defaults (both branches were `true`)
- Add proper error state when gateway/config fails to load
- Add beforeunload guard to prevent losing unsaved changes on navigation
- Token threshold cross-validation: prevent warning >= critical with inline
  error message and disabled save button
- Gate "Debug & Logging" nav item behind power user mode in both desktop
  and mobile navs (was visible to all users before)

New config fields exposed:
- logging.file (log file path)
- logging.redactPatterns (custom regex redaction patterns)
- logging.journal.toolFilter (scope journal to specific tools)
- logging.enhanced.gatewayHealthSuppressMethods (suppress health logs
  for specific RPC methods)

UX improvements:
- Channel autocomplete suggestions from useChannelsStatusFast() gateway data
- Feature autocomplete suggestions from known codebase feature IDs
- Extracted reusable TagListEditor component for string[] config fields
- Quick-add badge chips for one-click channel/feature addition

https://claude.ai/code/session_011WdpEacHmK1fMQMFiD3Szu

* tests: relax cron timer timezone expectation

* Fix journal toggle default and tool filter help text in DebugLoggingSection (openclaw#399)

- Default the journal enabled toggle to true (was false), matching the
  runtime behavior where startJournalSubscriber treats undefined as enabled
- Update tool filter help text to reflect actual backend default
  (DEFAULT_JOURNAL_TOOLS subset) instead of claiming "all tools"
- Expand journal sub-settings when enabled field is unset (consistent
  with the new default-true toggle)

https://claude.ai/code/session_011jGYfDDmG4hSUMkct6YsjR

Co-authored-by: Claude <[email protected]>

---------

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants