Skip to content

fix(update): post-merge review follow-ups (GLM) - #224

Merged
kaovilai merged 1 commit into
mainfrom
t3/coderabbit-postmerge-fixes
Nov 18, 2026
Merged

kaovilai merged 1 commit into
mainfrom
t3/coderabbit-postmerge-fixes

Conversation

@kaovilai

@kaovilai kaovilai commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

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

  • Repair path before the version guard (.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 fetch of the tag, since actions/checkout fetches neither tags nor history).
  • Distinct exit code for version-comparison failure (.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 over releases/latest. Now: 0 = refuse, 1 = publish, anything else = abort.
  • Dead info.managed branch (settings.js): background.js no longer reports managed, so the branch could never be true — stale vestige of the old "Web Store installs skip the check" behavior.
  • README overclaim (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 fail
  • Extracted workflow run: script passes bash -n
  • Version-comparison exit codes exercised directly: v1.2.1 vs v1.2.0 → 1 (publish), v1.2.0 vs v1.2.1 → 0 (refuse), equal → 1
  • No release triggered: this PR touches neither manifest.json nor updates.xml

Note

Responses generated with Claude (model: GLM 5.3)

Summary by CodeRabbit

  • New Features
    • Update checks now run across all installation types, including managed and Web Store installations. An update badge may appear after a release is published and clears once the extension is current.
    • The update section in settings is shown whenever update information is available, including for managed installations.
  • Chores
    • Releases missing their downloadable package can be completed without changing releases that already include one. Older versions are prevented from being published as new releases.

- 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>
Copilot AI balanced review requested due to automatic review settings November 18, 2026 05:45
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The 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.

Changes

Release and Update Handling

Layer / File(s) Summary
Release repair and version guard
.github/workflows/release.yml
The workflow handles existing releases before checking the latest version. It repairs an existing release without a CRX from the tagged commit. New releases are blocked if their version is older than the latest release. Lookup and comparison errors abort the workflow.
Managed-install update display
settings.js, README.md
The settings page no longer hides update information for managed installations. The README states that all installs run the update check and that the badge clears when the extension is current.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: copilot

Merge Risk: Minimal · up to 2f290

The release workflow now repairs existing releases that lack a CRX before the latest-version guard runs, and still refuses to publish older versions. The settings and README changes are minor. No merge-blocking risk was found.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the release tag,
Then mends a missing CRX.
The update badge appears in time,
And fades when current versions match.
I twitch my nose and hop along!

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 managed UI 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

@kaovilai
kaovilai merged commit 6e41a4c into main Nov 18, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants