Skip to main content
← Back to list
01Issue
BugShippedSwamp CLI
Assigneesstack72

Relationships

#1149 Hot-reload finds 0 types for large pulled extensions (empty extension_name in catalog rows)

Opened by stack72 · 7/14/2026· Shipped 7/15/2026

Summary

reloadPulledExtensions in serve.ts calls catalog.findByExtension(name, version) to locate rows for each pulled extension. For @swamp/aws/ec2 (108 model types), this returns 0 rows because many catalog rows have an empty extension_name field.

Reproduction

  1. swamp repo init /tmp/repro && cd /tmp/repro
  2. swamp extension pull @swamp/aws/ec2
  3. swamp model type search instance --json — types load correctly
  4. Query the catalog: findByExtension("@swamp/aws/ec2", "2026.07.11.1") returns 0 rows
  5. findByKind("model") returns 214 rows, but many have extension_name: ""

Impact

swamp serve reload reports "Hot-reloaded 0 type(s)" for extensions affected by this — the hot-reload path silently does nothing because it cannot find the catalog rows to re-import.

Root cause (suspected)

The catalog extension_name column is not populated consistently during the initial catalog build via discoverFiles / buildIndex. The reconcile path may populate it correctly for some rows but not all. Small extensions (e.g. a single-type test extension) have the field populated; large pulled extensions like @swamp/aws/ec2 do not.

Environment

Discovered during investigation of swamp-club#1140. This is a pre-existing issue, not introduced by the #1140 fix.

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 5 MOREREVIEW+ 4 MOREPR_MERGED+ 1 MORENOTIFICATION_SKIPPED

Shipped

7/15/2026, 12:38:41 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack727/14/2026, 9:13:26 PM

Sign in to post a ripple.