-
-
Notifications
You must be signed in to change notification settings - Fork 69.4k
[Bug] Onboard UI fails to overwrite existing provider configurations #38657
Description
Bug type
Behavior bug (incorrect output/state without crash)
Summary
When attempting to update an existing model provider configuration through the Onboard UI, the changes are not persisted to the configuration files. The UI appears to save successfully, but the underlying JSON files retain the original (potentially incorrect) values. This forces users to manually edit multiple configuration files to correct any mistakes.
Steps to reproduce
- Open Onboard UI (e.g.,
openclaw onboardor web interface) - Add a new model provider (e.g., Moonshot) with configuration:
- API Key:
sk-xxxxxxxx - Base URL:
https://api.moonshot.cn/v1(or an incorrect URL)
- API Key:
- Save the configuration
- Attempt to modify the same provider (e.g., correct the Base URL or API Key)
- Save again
- Check configuration files - changes are not reflected
Expected behavior
Onboard UI should overwrite existing provider configurations when saving changes, or provide a clear indication that the provider already exists and offer an update option.
Actual behavior
- Onboard UI shows no error message
- Configuration appears to save successfully
- However, the following files retain original values:
~/.openclaw/agents/<agent>/agent/auth-profiles.json~/.openclaw/agents/<agent>/agent/models.json~/.openclaw/config/openclaw.json
OpenClaw version
2026.3.2
Operating system
macOS 15.4 (Darwin 24.6.0 arm64)
Install method
Homebrew
Logs, screenshots, and evidence
Impact and severity
Affected: All users who need to update existing model provider configurations through Onboard UI
Severity: Medium-High (blocks workflow for configuration corrections)
Frequency: 100% reproducible when attempting to update existing providers
Consequence:
- Users cannot correct configuration mistakes through the UI
- Forces manual editing of multiple JSON files
- Requires technical knowledge to locate and edit configuration files
- Poor user experience for a core configuration workflow
- Users must restart gateway manually after editing files
Additional information
Scope
- Confirmed affected: Moonshot provider
- Status of other providers: Unknown (not tested)
Workaround
Manual editing of configuration files:
# Edit the three affected files
nano ~/.openclaw/agents/main/agent/auth-profiles.json
nano ~/.openclaw/agents/main/agent/models.json
nano ~/.openclaw/config/openclaw.json
# Restart gateway to apply changes
openclaw gateway restartSuggested Fixes
- Preferred: Onboard UI should detect existing provider configurations and overwrite them on save
- Alternative: Show dialog asking "Provider already exists. Update existing configuration?"
- Minimum: Display error message if configuration cannot be updated
Context
This issue was discovered when attempting to correct an incorrect Base URL for the Moonshot provider. The initial configuration error could not be fixed through the UI, requiring manual intervention.