Don't reinstall a stale OpenClaw package over a working CLI - #11969
Chessing234 wants to merge 1 commit into
Conversation
The Install > AI entry keyed only on the openclaw package, so removing it re-offered a possibly older package that shadows a newer CLI on PATH and breaks a migrated state database. Gate install on package, PATH, or gateway, skip package reinstall when one of those is already present, and warn when multiple openclaw binaries are on PATH.
|
Verified this against a machine living in exactly the scenario the PR targets (multi-binary OpenClaw install, package + PATH + gateway all present):
One bug found: the new The "absent" fixture (mocked Interop note: the presence ladder also treats a mise/npm-installed CLI or gateway unit as present, so this composes cleanly with the npm-based install flow proposed in #7919 if that lands later. |
Summary
pacman -R openclawit re-offered a possibly older package that shadows a newer CLI on PATH and breaks a migrated state DB.openclaw, or the gateway unit exists.openclawbinaries are on PATH.Fixes #11829
Test plan
bash test/shell.d/openclaw-present-test.shopenclawon PATH, Install > AI hides OpenClawomarchy-install-openclaw-cli --nowdoes not runpacman -S openclawwhen PATH already has itopenclawbinaries prints a PATH warning