Skip to content

Setup wizard overwrites existing OpenClaw config instead of merging #1

@taraagentix

Description

@taraagentix

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:

  1. Detect an existing openclaw.json config
  2. Preserve existing agents (especially if one is marked default: true)
  3. Add xopsbot agents to the agents.list array instead of replacing it
  4. 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

  1. Configure OpenClaw with a custom default agent
  2. Run bun run setup from the xopsbot directory
  3. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions