Skip to content

fix(extensions): offer updates to installs that predate source records - #279

Merged
StuBehan merged 1 commit into
mainfrom
fix/extension-adopt-unrecorded-source
Nov 24, 2026
Merged

StuBehan merged 1 commit into
mainfrom
fix/extension-adopt-unrecorded-source

Conversation

@StuBehan

Copy link
Copy Markdown
Collaborator

Extensions installed from an extra catalogue before .sources.json existed now get offered their updates. Mine was claude-usage from the internal marketplace, installed 19 Nov at 01:02 and .sources.json only turned up at 07:13 as {}, so it read as the app's own, the built-in catalogue doesn't list it, and it sat on 0.1.0 through 0.2.0, 0.3.0 and 0.3.1 with no Update ever showing.

On each catalogue load, an installed id with a tier but no source gets the source that has to be its own: the built-in index doesn't list it and exactly one extra source does. That runs before the sources are read for the rows, so the same load shows the update.

Left alone:

  • anything with no tier, since that was put there by hand and the "another source listing the id says nothing about the copy" rule still holds for it
  • anything two sources list
  • anything the built-in index lists
  • anything that already has a source

Nothing goes up from this, the tier still gets reconciled against that source's listing like any other, and an update still asks first.

Tests: 7 new in ExtensionSourceTests (the rule's cases, the file write, and a catalogue load going from 0.1.0 to an available 0.3.1). swift test for ExtensionSourceTests, ExtensionTierTests and ExtensionCatalogTests, 139 pass. docs/extensions.md has a paragraph on it.

@StuBehan
StuBehan merged commit 0984a75 into main Nov 24, 2026
6 checks passed
@StuBehan
StuBehan deleted the fix/extension-adopt-unrecorded-source branch November 24, 2026 20:24
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