Skip to content

Claude/amazing newton 4op8tt - #7

Merged
Eli-Zac merged 2 commits into
mainfrom
claude/amazing-newton-4op8tt
Sep 21, 2026
Merged

Eli-Zac merged 2 commits into
mainfrom
claude/amazing-newton-4op8tt

Conversation

@Eli-Zac

@Eli-Zac Eli-Zac commented Sep 21, 2026

Copy link
Copy Markdown
Owner

No description provided.

Eli-Zac and others added 2 commits September 21, 2026 05:41
The button could only ever report a version difference and link to the
release page: an extension has no API to rewrite its own files, and
requestUpdateCheck() — the API that actually installs an update — only
works where Chrome owns the update channel.

Chrome adds an "update_url" to the manifest of extensions it installed
itself, so background.js uses that to pick a path. On a store install it
calls requestUpdateCheck() and then reload() to restart into the new
version immediately; an unpacked copy keeps the existing GitHub Releases
comparison and download link, since nothing else is possible there.

requestUpdateCheck()'s callback shape differs between MV2 ((status,
details)) and MV3 (a single { status, version }), so the wrapper reads
whichever arrived rather than pinning one.

No onUpdateAvailable listener: registering one makes Chrome hold updates
back until the extension calls reload() itself, and restarting unprompted
would kill an Autoplay run mid-round. Without one Chrome installs new
versions once the extension goes idle, and the button forces it now.

Also drops the innerHTML interpolation of GitHub API fields in the
status line in favour of building the link as DOM nodes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012NHY2G9nsiWSNXvMU6se6m
The manifest had no icons field and the repo shipped no image, so Chrome
fell back to a generated letter tile and the Web Store listing had
nothing to upload. Adds a map-pin mark at the four sizes Chrome asks for
(16/32/48/128) and lists icons/ in the release zip, which names its
contents explicitly and would otherwise leave them out.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012NHY2G9nsiWSNXvMU6se6m
@Eli-Zac
Eli-Zac merged commit 701016d into main Sep 21, 2026
1 check passed
@Eli-Zac
Eli-Zac deleted the claude/amazing-newton-4op8tt branch September 21, 2026 05:48
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.

1 participant