Skip to content

fix(status): use resolved model when raw default references removed provider#132

Open
BingqingLyu wants to merge 4 commits intomainfrom
fork-pr-39646-fix-stale-default-model-status
Open

fix(status): use resolved model when raw default references removed provider#132
BingqingLyu wants to merge 4 commits intomainfrom
fork-pr-39646-fix-stale-default-model-status

Conversation

@BingqingLyu
Copy link
Copy Markdown
Owner

@BingqingLyu BingqingLyu commented Apr 27, 2026

Summary

  • Validate that the provider referenced in the raw default model string exists before using it in status output
  • Fall back to the properly resolved model label when the provider has been removed from config
  • Prevents stale provider/model names from appearing in openclaw status and models status --json

Fixes openclaw#38880

Test plan

  • Remove a provider from config, verify openclaw status shows the resolved model
  • Verify models status --json uses resolved model when provider is removed
  • Verify normal operation unchanged when provider exists

Generated with Claude Code

gambletan and others added 4 commits March 7, 2026 23:18
The OPENCLAW_GATEWAY_BIND setting in .env was being ignored because
GATEWAY_BIND was evaluated before the .env file was sourced. This
caused the gateway to always start with --bind loopback regardless
of the user's configuration.

Fix: Move .env sourcing to happen before GATEWAY_BIND evaluation.

Closes openclaw#38810
Issue openclaw#38830

The legacy-param detection incorrectly treats empty strings like
to: '' or channelId: '' as legacy-param usage. Some tool wrappers
populate optional fields with empty-string defaults, causing valid
calls using target to fail.

Changed checks to require non-empty strings:
- typeof params.args.to === 'string' && params.args.to.trim().length > 0
- typeof params.args.channelId === 'string' && params.args.channelId.trim().length > 0
- Add AWS Bedrock 'too many tokens per day' pattern to rate limit detection
- Add 'tokens per day' and 'too many tokens' to failover-matches.ts
- Add patterns to errors.ts, timer.ts, and manager-embedding-ops.ts

Fixes openclaw#38822
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.

[Bug]: openclaw status / openclaw models status --json report stale default model from removed provider

2 participants