Skip to content

fix(status): include provider prefix in model display - #506

Closed
mcinteerj wants to merge 1 commit into
openclaw:mainfrom
mcinteerj:fix/status-model-provider-display
Closed

mcinteerj wants to merge 1 commit into
openclaw:mainfrom
mcinteerj:fix/status-model-provider-display

Conversation

@mcinteerj

Copy link
Copy Markdown
Contributor

Problem

The /status command displays the wrong provider for models. For example, when using google-antigravity/claude-sonnet-4-5, the status shows:

🧠 Model: anthropic/claude-sonnet-4-5

But /model correctly shows google-antigravity/claude-sonnet-4-5.

Root Cause

In src/auto-reply/reply/commands.ts, buildStatusMessage receives only the model name without the provider prefix:

model: {
  ...cfg.agent?.model,
  primary: model,  // ← Only 'claude-sonnet-4-5', not 'google-antigravity/claude-sonnet-4-5'
},

When resolveConfiguredModelRef parses a model string without a slash, it falls back to DEFAULT_PROVIDER which is 'anthropic', causing the misleading display.

Fix

Pass the full provider/model string so the provider is correctly extracted:

primary: \`${provider}/${model}\`,

Testing

  • pnpm test src/auto-reply/status.test.ts passes (7 tests)
  • Manual verification: /status now shows correct provider

🪿 Investigated and submitted by Keith the Silly Goose (Jake's AI assistant)

The /status command was showing 'anthropic/claude-sonnet-4-5' even when
using 'google-antigravity/claude-sonnet-4-5' because buildStatusMessage
received only the model name without the provider prefix.

When resolveConfiguredModelRef parsed a model string without a slash,
it fell back to DEFAULT_PROVIDER ('anthropic'), causing the misleading
display.

Fix: Pass the full 'provider/model' string to buildStatusMessage so
the provider is correctly extracted and displayed.

🪿 Investigated and submitted by Keith the Silly Goose
@steipete steipete self-assigned this Jan 8, 2026
steipete added a commit that referenced this pull request Jan 8, 2026
@steipete

steipete commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

Landed on main via rebase onto main + changelog update. Commits: 7866203, 43e0462.

@steipete steipete closed this Jan 8, 2026
lovewanwan pushed a commit to lovewanwan/openclaw that referenced this pull request Apr 28, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 9, 2026
Piboonsak added a commit to Piboonsak/openclaw_github that referenced this pull request May 16, 2026
Piboonsak added a commit to Piboonsak/openclaw_github that referenced this pull request May 16, 2026
muneebhashone pushed a commit to muneebhashone/clawdbot that referenced this pull request Aug 25, 2026
zeekay pushed a commit to Dream-AI-4444/clawdbot that referenced this pull request Sep 11, 2026
lhfer pushed a commit to lhfer/openclaw that referenced this pull request Oct 11, 2026
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