From 111bad106544023aaeb3e520e8fb9714008beb10 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 22 May 2026 13:40:15 +0100 Subject: [PATCH] fix(doctor): point codex asset warning at migrate plan (#85324) --- CHANGELOG.md | 1 + src/commands/doctor/shared/codex-native-assets.test.ts | 2 +- src/commands/doctor/shared/codex-native-assets.ts | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e49a88b1117..7719f17ca7d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ Docs: https://docs.openclaw.ai - CLI/update: start managed Gateway update handoff helpers from a stable existing directory and tolerate deleted cwd/package roots during macOS LaunchAgent handoff. Fixes #83808. (#83875) Thanks @jason-allen-oneal. - Cron: honor `cron.retry.retryOn: ["network"]` for common network error codes such as `EAI_AGAIN`, `EHOSTUNREACH`, and `ENETUNREACH`. - Agents/OpenAI: preserve structured provider error code, type, and redacted body metadata on boundary-aware transport failures. +- Doctor/Codex: point native Codex asset warnings at the canonical `openclaw migrate plan codex` preview command. Fixes #84948. Thanks @markoa. - CLI/agents: retry transient normal-close Gateway handshakes before falling back to embedded `openclaw agent` execution. - CLI/update: keep managed Gateway service stop/restart status lines out of `openclaw update --json` stdout so package-update automation can parse the JSON payload. - Plugins: resolve OpenClaw plugin SDK subpaths for native external plugin runtimes without mutating package installs or broadening process-wide module resolution. diff --git a/src/commands/doctor/shared/codex-native-assets.test.ts b/src/commands/doctor/shared/codex-native-assets.test.ts index a0c0411acfae..38cf47abae28 100644 --- a/src/commands/doctor/shared/codex-native-assets.test.ts +++ b/src/commands/doctor/shared/codex-native-assets.test.ts @@ -123,7 +123,7 @@ describe("collectCodexNativeAssetWarnings", () => { "- Personal Codex CLI assets were found, but native Codex-mode OpenClaw agents use isolated per-agent Codex homes.", `- Sources: ${codexHome} and ${path.join(root, ".agents", "skills")} (1 skill, 0 plugins, 0 config files, 0 hook files).`, "- These assets will not be loaded by the Codex app-server child unless you intentionally promote them.", - "- Run `openclaw migrate codex --dry-run` to inventory them. Applying that migration copies skills into the current OpenClaw agent workspace; Codex plugins, hooks, and config stay manual-review only.", + "- Run `openclaw migrate plan codex` to inventory them. Applying that migration copies skills into the current OpenClaw agent workspace; Codex plugins, hooks, and config stay manual-review only.", ].join("\n"), ]); }); diff --git a/src/commands/doctor/shared/codex-native-assets.ts b/src/commands/doctor/shared/codex-native-assets.ts index 298203a5cae3..311910107efa 100644 --- a/src/commands/doctor/shared/codex-native-assets.ts +++ b/src/commands/doctor/shared/codex-native-assets.ts @@ -201,7 +201,7 @@ export async function collectCodexNativeAssetWarnings(params: { "- Personal Codex CLI assets were found, but native Codex-mode OpenClaw agents use isolated per-agent Codex homes.", `- Sources: ${resolveCodexHome(env)} and ${resolvePersonalAgentSkillsDir(env)} (${counts.join(", ")}).`, "- These assets will not be loaded by the Codex app-server child unless you intentionally promote them.", - "- Run `openclaw migrate codex --dry-run` to inventory them. Applying that migration copies skills into the current OpenClaw agent workspace; Codex plugins, hooks, and config stay manual-review only.", + "- Run `openclaw migrate plan codex` to inventory them. Applying that migration copies skills into the current OpenClaw agent workspace; Codex plugins, hooks, and config stay manual-review only.", ].join("\n"), ]; }