Relationships
#2510 model output data/logs/search can't find outputs of user extension model types locally
Opened by hammz · 9/24/2026· Shipped 9/25/2026
Summary
swamp model output data, swamp model output logs and swamp model output search cannot find outputs produced by a user extension model type when run locally. data and logs fail with Output not found: <id>, and search returns []. swamp model output get <model> finds the same output.
Cause
YamlOutputRepository.findAllGlobal() walks modelRegistry.types(). User extension types are only in that list after modelRegistry.ensureLoaded() runs. src/libswamp/models/output_get.ts:154 calls it, but these three do not:
src/libswamp/models/output_data.ts:135src/libswamp/models/output_logs.ts:109src/libswamp/models/output_search.ts:98, throughfindAllOutputsGlobal
Over swamp serve (--server) all three work, because serve loads extension types at startup.
Reproduction
- Create a repo with
swamp repo init --tool noneand add a local extension model underextensions/models/. In the repro it is@repro/png-writer, with awritemethod that writes a file spec. - Run
swamp model create @repro/png-writer pngreproandswamp model method run pngrepro write. - Run
swamp model output get pngrepro --jsonto find the output id. This works. - Run
swamp model output data <outputId> --name pixel --json. It fails withOutput not found: <outputId>. - Run
swamp model output logs <outputId>. It fails the same way. - Run
swamp model output search --json. It returns[].
Found while reproducing swamp-club#2503. The repro repo is at ~/swamp/repro/issue-2503 on the reporter's machine.
Expected
The local commands resolve extension-typed outputs the same way model output get and serve do.
Environment
swamp 20260924.202509.0-sha.a2cfb7d1, Linux x86_64.
Shipped
Click a lifecycle step above to view its details.
Sign in to post a ripple.