Repository navigation
fix(extensions): deduplicate dev-linked extensions in discover_all - #1132
Conversation
`asyar link --dev` both symlinks the extension into `extensions/` and registers it in `dev_extensions.json`. `discover_all` scanned both sources into `all_records` without deduplicating by `manifest.id`, returning duplicate records to the frontend and triggering a Svelte `each_key_duplicate` crash in `ThemePicker` when a theme extension was dev-linked. Replace any matching `manifest.id` record via `upsert_extension_record` so dev entries override installed/symlinked ones cleanly.
|
No actionable comments were generated in the recent review. WalkthroughDev extension discovery now upserts records by manifest ID. A test checks that the upsert replaces a matching installed record and preserves an unrelated record. ChangesDev extension record upsert
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk:
|
asyar link --devboth symlinks the extension intoextensions/andregisters it in
dev_extensions.json.discover_allscanned bothsources into
all_recordswithout deduplicating bymanifest.id,returning duplicate records to the frontend and triggering a Svelte
each_key_duplicatecrash inThemePickerwhen a theme extensionwas dev-linked.
Replace any matching
manifest.idrecord viaupsert_extension_recordso dev entries override installed/symlinked ones cleanly.
What changed
Affected areas
asyar-sdk, extension runtime, IPC contracts, manifest)Manual smoke test & Validation
pnpm dev) and visually verified the fix/feature works.AI usage
asyar-contributionskill (.agents/skills/asyar-contribution/SKILL.md), followed it, and reviewed every generated line.Boundaries
pnpm check:ci(or the relevant inner-loop checks) passes locally.Summary by CodeRabbit