fix: warn when claw migrate source is a remote-mode OpenClaw client#38237
Closed
alaamohanad169-ship-it wants to merge 1 commit into
Closed
fix: warn when claw migrate source is a remote-mode OpenClaw client#38237alaamohanad169-ship-it wants to merge 1 commit into
alaamohanad169-ship-it wants to merge 1 commit into
Conversation
When ┌─────────────────────────────────────────────────────────┐ │ ⚕ Hermes — OpenClaw Migration │ └─────────────────────────────────────────────────────────┘ ✗ OpenClaw directory not found: /data/data/com.termux/files/home/.openclaw Make sure your OpenClaw installation is at the expected path. You can specify a custom path: hermes claw migrate --source /path/to/.openclaw is pointed at an OpenClaw installation configured as a remote-mode client (gateway.mode: "remote"), the full configuration (model settings, channels, MCPs, cron jobs, agent defaults, approvals) lives on the remote server, not in the local openclaw.json. The migration would previously report ~33 "No X configuration found" skip entries with no explanation. Now detects gateway.mode: "remote" in the source config and prints a clear warning explaining that only workspace files and skills will be migrated, and to run the tool against the server's OpenClaw directory for the full configuration. Closes NousResearch#38230
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When
hermes claw migrateis run against an OpenClaw installation configured as a remote-mode client (gateway.mode: "remote"), the tool completes successfully but reports ~33 "No X configuration found" skip entries with no explanation. The user has no indication that the bulk of their configuration lives on the remote server, not in the localopenclaw.json.This PR adds a clear warning when the source OpenClaw config has
gateway.mode: "remote", following the same pattern as the existing_warn_if_openclaw_running()and_warn_if_gateway_running()warning functions.Changes
hermes_cli/claw.py: Added_warn_if_remote_client(source_dir)function that reads the source OpenClaw config, detectsgateway.mode: "remote", and prints a warning explaining what will and won't be migrated._cmd_migrate()alongside the other pre-migration warning checks.Warning message
Testing
Closes #38230