OpenClaw Update: Enhancing Model Discovery and Configuration Resolution
The latest set of merges to the OpenClaw repository addresses key friction points in both the user interface and the core configuration logic. These updates ensure that users can access the full catalog of available models regardless of the platform's technical constraints and that configuration changes are persisted accurately without introducing silent errors.
Merged PRs
- fix(models) Discord model picker doesn't list all models [Original PR]
- fix(models): resolve set aliases from runtime config [AI-assisted] [Original PR]
- fix(exec): return approved WebChat gateway exec output inline [Original PR]
Key Changes
Discord Model Picker Pagination
To overcome Discord's component limits—which cap provider grids at 25 buttons and select menus at 25 options—OpenClaw has introduced a pagination system for the /models picker. Previously, users with a large number of providers or models (such as those using OpenAI or Anthropic) were unable to see the full catalog.
The implementation adds a navigation row ([◀ Prev | Page X/Y | Next ▶]) to both the provider and model views. This ensures that the state (selected provider, runtime, and pending model) is preserved while flipping through pages, allowing users to navigate the entire available list without losing their place.
Canonical Model Alias Resolution
A critical bug was fixed in the models set command where aliases were being resolved against the source configuration rather than the effective runtime configuration. This led to a situation where running a command like openclaw models set sonnet could silently write a bogus model ID (e.g., openai/sonnet) if the alias only existed in the runtime defaults.
As the developer noted:
models setmutated the authored source config and also resolved aliases against that source config, while built-in model aliases can be added only in the effective runtime config.
The fix ensures that models set now resolves the input against the runtime alias table and persists only the canonical provider/model ID into the authored configuration, preventing the creation of invalid entries.
WebChat Gateway Execution
An update was merged to ensure that approved WebChat gateway execution output is returned inline, facilitating better integration with the ClawSweeper automerge loop and improving the flow of automated PR validation.
Impact
These changes significantly improve the Developer Experience (DX) and reliability of the system. By implementing pagination in Discord, OpenClaw removes a hard ceiling on model discovery for power users. More importantly, the fix to the alias resolution logic prevents a common failure mode where users could inadvertently corrupt their configuration files with non-existent model identifiers, ensuring that the CLI remains a predictable and reliable tool for managing AI model configurations.