Files
openclaw/src/commands
Sarah Fortune e9421bbdec fix(onboarding): treat already-installed codex as success, update in place (#80816)
When `ensureCodexRuntimePluginForModelSelection` ran for a host that
already had `@openclaw/codex` installed under the managed npm root, the
default `mode: "install"` path in `installPluginFromNpmSpec` returned
"plugin already exists" from `ensureInstallTargetAvailable` and the
wizard marked the step as failed.

Now, when the install record points at a real package on disk, route
through the existing `repairCodexRuntimePluginInstallForModelSelection`
flow (which runs `repairMissingPluginInstallsForIds` →
`updateNpmInstalledPlugins`), forward any changes/warnings to the
runtime log, enable the plugin in cfg, and return `installed`.

A fresh install still flows through `ensureOnboardingPluginInstalled`
so the wizard progress UI is unchanged.
2026-05-11 17:26:40 -07:00
..
2026-05-11 20:59:38 +01:00
2026-05-02 08:01:12 +01:00
2026-05-09 08:05:06 +08:00
2026-05-02 07:51:03 +01:00
2026-05-11 21:54:36 +01:00
2026-05-09 08:05:06 +08:00
2026-05-11 18:02:05 +01:00
2026-05-11 16:41:46 +01:00
2026-05-10 06:36:15 +08:00