mirror of
https://github.com/bitbaum/openclaw.git
synced 2026-12-04 20:48:55 +01:00
* fix(update): route stored dev channel to the git update flow [AI-assisted] A package-detected launcher with a stored update.channel: dev resolved the npm "dev" dist-tag (which does not exist -> ETARGET) because switchToGit only honored an explicitly requested --channel dev. Base the decision on the effective channel and collapse the duplicated selectedChannel/channel computation, which is provably identical in every reachable case. Refs #123073 * docs(update): state the dev-channel git contract in the routing comment Review finding: "dev" can exist as a rare npm dist-tag, so the comment must not claim it never does; the routing rationale is the documented dev-channel git-checkout contract. * fix(update): keep one-off --tag on the package path for stored-dev installs --tag is documented as a one-run package-target override, so a stored dev channel must not divert a tagged update into the git flow (where the tag is ignored). An explicitly requested --channel dev still outranks the tag, matching existing explicit-channel behavior. * test(update): scope the package-to-git clone to a per-case OPENCLAW_GIT_DIR The stored-dev routing case performs a real transactional clone. On the default <home>/openclaw that directory outlived the case and made a later test fail with "OPENCLAW_GIT_DIR appeared while cloning". Test Plan: node --import tsx scripts/test-projects.mts src/cli/update-cli.test.ts Failing set now matches clean origin/main exactly (3 pre-existing macOS $TMPDIR symlink failures, unrelated to this change). Assisted by an AI coding assistant; reviewed before submitting. * test(update): verify stored dev routing on installed packages Temporary expected-failure verification for #123073. Restore only the routing owner to its pre-fix bytes while retaining the original contributor commits and adding installed-package regression coverage. This head must not merge; restore the reviewed fix and require hosted green proof after capturing the intended failure. * fix(update): restore stored dev routing after regression proof Restore the contributor's canonical effective-channel fix after the installed-package regression lane reproduced package routing for stored dev. Keep one-off tags on the package path and explicit dev precedence. Remove the obsolete source-text assertion now covered by installed CLI behavior and format the CI documentation table. Preserve all original contributor commits. Fresh hosted GREEN validation remains required. Co-authored-by: Chinmayrawat15 <chinmayrawat15@gmail.com> --------- Co-authored-by: Peter Steinberger <steipete@gmail.com> Co-authored-by: Chinmayrawat15 <chinmayrawat15@gmail.com>