-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Problem
Running bun run setup (the xopsbot setup wizard) replaces the entire ~/.openclaw/openclaw.json file instead of merging with existing configuration.
Impact
If a user already has a configured OpenClaw agent (e.g., a main orchestrator agent like Tara), the wizard silently removes it and replaces the config with only the xopsbot agents (xops-k8s, xops-rca, xops-finops).
Expected Behavior
The wizard should:
- Detect an existing
openclaw.jsonconfig - Preserve existing agents (especially if one is marked
default: true) - Add xopsbot agents to the
agents.listarray instead of replacing it - Warn the user if a conflict is detected
Workaround
After running the setup wizard, manually re-add the original default agent to ~/.openclaw/openclaw.json and update the subagents.allowAgents array to include the xopsbot agent IDs.
Reproduction
- Configure OpenClaw with a custom default agent
- Run
bun run setupfrom the xopsbot directory - Check
~/.openclaw/openclaw.json— original agent config is gone
Environment
- OpenClaw version: latest
- xopsbot version: 0.1.0
- OS: macOS (Darwin 24.3.0 arm64)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels