Repository navigation
fix(update): post-merge review follow-ups (GLM) - #224
Conversation
- release: run the repair path before the latest-version guard. A ZIP-only release used to be repairable only while it was still the newest version; once main moved past it the release stayed CRX-less forever even though the workflow comment promised otherwise. - release: give the version comparison a distinct failure exit code. Node exiting non-zero for "this version is newer" was indistinguishable from a crash, so a broken comparison would have published an older version as latest instead of aborting. - settings: drop the dead `info.managed` branch — background.js no longer reports it, so only the vestige of the old Web Store skip remained. - README: stop claiming store-managed installs skip the update check. Every install runs it now, so the `↑` badge can appear between a release landing and the user installing it from chromium-web-store. Co-Authored-By: Claude Code <noreply@anthropic.com> Signed-off-by: Tiger Kaovilai <passawit.kaovilai@gmail.com> Co-Authored-By: Claude Code (model: GLM 5.3) <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. WalkthroughThe release workflow now handles repairable existing releases before the latest-version guard. The settings page displays update information for managed installations, and the README documents update checks for all installs, including chromium-web-store installs. ChangesRelease and Update Handling
Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Possibly related PRs
Suggested reviewers: Merge Risk:
|
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the release-repair handling, Settings UI, and documentation changes.
No open issues 🎉
What changed in this PR
This PR follows up on #223’s self-hosted update support by improving release repair handling and aligning the Settings UI and documentation with checks that run for every install.
Changes:
- Moves existing-release CRX repair ahead of the latest-version guard.
- Adds explicit handling for version-comparison failures.
- Removes the obsolete
managedUI check and corrects the README’s update behavior description.
| File | Description |
|---|---|
| settings.js | Removes the obsolete condition that hid updates for managed installs. |
| README.md | Clarifies that every install checks for updates and may show the update badge. |
| .github/workflows/release.yml | Reorders CRX repair and adds comparison-error handling before publishing. |
Review effort: Balanced
What
Four post-merge follow-ups from the GLM review of #223 (verdict: APPROVE, 1 LOW + 3 NIT — all real, all fixed here).
Why each change
.github/workflows/release.yml): a ZIP-only release was only repairable while it was still the newest version. Once main moved past it, the latest-version guard refused to touch it and the release stayed CRX-less forever, even though the workflow comment promised repair. The repair block now runs first and builds from the tagged commit (git fetchof the tag, since actions/checkout fetches neither tags nor history)..github/workflows/release.yml): the comparison node script exited non-zero for "latest is newer — refuse", indistinguishable from a crash. A crashed comparison would have been read as "publish" and let an older version take overreleases/latest. Now: 0 = refuse, 1 = publish, anything else = abort.info.managedbranch (settings.js):background.jsno longer reportsmanaged, so the branch could never be true — stale vestige of the old "Web Store installs skip the check" behavior.README.md): said store-managed installs update themselves and skip the update check. Not true — every install runs the check now, so the↑badge can appear between a release landing and the user installing it from chromium-web-store. Reworded.Verification
npm test→ 428 pass, 0 failrun:script passesbash -nv1.2.1vsv1.2.0→ 1 (publish),v1.2.0vsv1.2.1→ 0 (refuse), equal → 1manifest.jsonnorupdates.xmlNote
Responses generated with Claude (model: GLM 5.3)
Summary by CodeRabbit