Repository navigation
fix(update): fetch only release tags for stable and beta git targets - #176155
Conversation
Stable and beta Git installs ran an unscoped `git fetch <remote> --prune --no-tags`, which pulled every remote branch on each `update status` and `update` even though release selection reads only tags. Release channels now skip the branch fetch; the tag fetch from the release remote is unchanged, and Dev keeps its selected-source scoping. Fixes #176152 Co-authored-by: Masato Hoshino <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesSkip branch fetching during stable and beta Git update inspection while preserving release-tag fetching. Example: A stable source installation runs update status twice against a remote containing large unrelated branches.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR provides a focused, source-correct fix for unnecessary release-channel downloads that current main still performs; no introduced correctness or security defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherUpdate status and execution share a Git target owner that fetches into a temporary inspection repository and supplies release candidates to existing selection and admission code. flowchart TD
A[Update status or execution] --> B[Private Git inspection]
B --> C[Shared fetch owner]
C --> D[Stable and beta release tags]
C --> E[Dev source refs]
D --> F[Release selection]
F --> G[Status or candidate admission]
Technical reviewBest possible solution: Remove the redundant release-channel branch fetch in the existing owner while preserving tag authority, release selection, and Dev behavior. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the unused branch fetch, tag-only selection, and temporary-repository cleanup, corroborated by the reporter's repeated CLI transfer traces; no target code was executed during this review. Is this the best way to solve the issue? This is the smallest complete repair: release inspection needs fresh tags rather than branch refs, and every changed hunk supports removing that unused transfer without adding machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5cb47d16571b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1, Tests -5, Docs +2. Total -2 across 3 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 18, 2026, 5:06 AM ET / 09:06 UTC. |
…penclaw#176155) Stable and beta Git installs ran an unscoped git fetch of the release remote, which downloaded every remote branch on each openclaw update status and openclaw update although release selection reads only tags. Release channels now skip the branch fetch; the release tag fetch is unchanged and Dev keeps its selected-source scoping. Thanks @masatohoshino for the report and fix. Fixes openclaw#176152 Co-authored-by: Masato Hoshino <[email protected]>
What Problem This Solves
On Git (source) installs following the stable or beta channel, every
openclaw update status --jsonandopenclaw updateran an unscopedgit fetch <remote> --prune --no-tags. Git then fetched every remote branch into the private inspection repository, and the next run fetched them all again. Release selection reads only tags, so that data was never used. Reported in #176152 by @masatohoshino, with a byte-counting proxy repro.Why This Change Was Made
In
fetchGitUpdateTarget, release channels now skip the branch fetch. The existing+refs/tags/*:refs/tags/*fetch from the release remote still runs and drives selection. Dev keeps the selected-source scoping from #172199. Downstream consumers ofrefreshedRemotes(explicit dev targets, dev upstream candidates) apply only to Dev, so release channels did not depend on the dropped branch refs.User Impact
Stable and beta Git installs no longer download the release remote's whole branch set on each update check.
Evidence
update status --json, run twice each: 8,393,582 → 1,208 bytes, with identicalpreferredTargettags and SHAs. Dry-run: 347 → 347 bytes, onels-remote, no object fetch.Supersedes #176153 (same root cause, independently re-implemented). Thanks @masatohoshino for the report and PR; credited as co-author.