Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f7bd6db054
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex review: needs changes before merge. Reviewed August 13, 2026, 6:23 AM ET / 10:23 UTC. ClawSweeper reviewWhat this changesThe PR makes a package installation with a persisted Regression provenancePossible regression — probable (reproduction; reviewed change). No predecessor PR is attributed. Merge readinessKeep this PR open for a small repair: it fixes the real stored-dev routing defect, but it would silently discard documented one-off package tags on stored-dev installs and also edits the release-owned changelog. Priority: P1 Review scores
Verification
How this fits togetherThe update CLI combines explicit flags and the persisted update channel to choose either a package-manager update or a git-checkout update. That decision controls target resolution, installation, and post-update recovery. flowchart LR
A[Update command] --> B[Stored channel preference]
A --> C[One-off package tag]
B --> D[Install-mode decision]
C --> D
D --> E[Package update]
D --> F[Git update]
E --> G[Installed release]
F --> G
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +26, Docs +1. Total +27 across 3 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Parse the explicit tag before choosing install mode, auto-switch stored-dev package installs only when no tag is present, cover that sibling contract, and leave release notes in the PR body. Do we have a high-confidence way to reproduce the issue? Yes. Current source proves that stored Is this the best way to solve the issue? No. Using the effective channel is the right owner boundary for no-flag updates, but the condition must preserve the documented explicit-tag override before selecting git mode. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9794a4a49c1f. LabelsLabel changes:
Label justifications:
EvidenceAcceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Thanks @MoerAI. Closing this in favor of #123083, which was opened earlier from the claimed issue lane and contains the same owner-boundary repair with tighter table-driven coverage, net-negative production code, real package-launcher proof, and green exact-head CI. I compared heads |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(update): honor stored dev channel for package installs This is item 2/3 in the current shard. Shard 7/19. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
|
Addressed both findings in |
Fixes #123073
What Problem This Solves
After a package-installed user switched to the
devchannel, a later no-flagopenclaw update --yesloaded the persistedupdate.channel: devbut kept the package install mode. The updater then tried to resolve the nonexistent npmdevtag instead of continuing through the configured git checkout.Why This Change Was Made
The explicit
--channel devpath already switches package installs to git. The stored channel is the same effective user choice, so install-mode selection now followsselectedChannelrather than only the current invocation'srequestedChannel.Scope
devand no--channelthrough the existing git update path.--channel dev, stable, extended-stable, beta, and existing git-install behavior.Evidence
Real Behavior Proof
Built and packaged this branch with the repository's self-contained package path, installed the resulting
openclaw-2026.8.1.tgzinto an isolated npm prefix, and configured an isolated state directory:The installed package CLI then received no
--channel:A non-dry-run invocation of the same installed CLI entered the real git updater: it cloned the isolated target checkout, created the candidate preflight worktree, and invoked
pnpm install --ignore-scriptsthere. This proves the package-to-git dispatch without touching the operator's real OpenClaw state or service.Failing-First Regression Proof
New test:
uses the stored dev channel to continue a package-to-git updateBefore the production change on current main:
After the change:
The focused adjacent update-routing set also passes, including the review-found
--tag latestoverride case, which remains on the package path while stored-dev no-flag updates use git.Validation
pnpm tsgo:core— passpnpm tsgo:core:test— passoxfmt --check— passgit diff --check— passpnpm build— passThe full update CLI file has 42 pre-existing Windows-host failures on both this branch and a pristine detached current-main worktree; this branch adds one passing test (199 passed vs 198 passed), with the same 42 failures in both runs.
Risk and Rollback
Risk is limited to no-tag install-mode selection when the effective channel is
dev; explicit one-off tags remain on the package path. Rollback is the one-line condition change plus its regression test/changelog entry.Thanks @galli-personal for the report and the secondary no-flag routing reproduction.