Skip to content

fix: tolerate legacy config filenames#70

Merged
vignesh07 merged 1 commit into
mainfrom
fix/issue-25-config-candidates
Feb 11, 2026
Merged

fix: tolerate legacy config filenames#70
vignesh07 merged 1 commit into
mainfrom
fix/issue-25-config-candidates

Conversation

@vignesh07

Copy link
Copy Markdown
Owner

Fixes #25.

The wrapper used to treat only openclaw.json as the configured path, which caused an infinite /setup redirect loop when the CLI wrote moltbot.json (legacy rename era).

This change:

  • Prefers explicit OPENCLAW_CONFIG_PATH / CLAWDBOT_CONFIG_PATH if set
  • Otherwise detects existing config files in STATE_DIR in order:
    • openclaw.json
    • moltbot.json
    • clawdbot.json

pnpm lint passes.

@vignesh07 vignesh07 merged commit bfb227e into main Feb 11, 2026
1 check passed
@vignesh07 vignesh07 deleted the fix/issue-25-config-candidates branch February 11, 2026 04:36
k7cfo pushed a commit to k7cfo/railclaw that referenced this pull request Feb 21, 2026
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 Report: Config file path mismatch after Clawdbot → Moltbot rename

1 participant