Skip to content

Build a page directory's index.html with the packages its layer record keeps - #5894

Merged
max-sixty merged 1 commit into
mainfrom
thread-card-gap
Nov 14, 2026
Merged

max-sixty merged 1 commit into
mainfrom
thread-card-gap

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

leaf-dev probe, preview --source and the fixture builder took a source's package selection from a sibling layer.json, reading it as the examples' manifest, a list of package names. A page directory's layer.json is its layer record, an object, so probing a real page's index.html failed with "unknown package 'format'", though the probe's help says a page directory's index.html builds as it stands. source_packages now reads a page's record through layer_record and takes its packages; the record's theme is left alone, since fixtures build under an empty configuration that takes the default theme.

Found while reproducing the thread card gap (#5853) on the page the user commented on. leaf-dev probe now builds two real page directories, one with the diff package. A new model test fails without the change. test_preview_file_subscription_follows_atomic_replacements fails with and without it.

This was written by Claude Code on behalf of max-sixty

…d keeps

`leaf-dev probe`, `preview --source` and the fixture builder read a sibling
`layer.json` as a list of package names, the examples' manifest. A page
directory's `layer.json` is its layer record, an object, so probing a page's
`index.html` failed with "unknown package 'format'", though the probe's help
says a page directory's index.html builds as it stands. `source_packages` now
reads a page's record through `layer_record` and takes its packages.
@max-sixty
max-sixty merged commit f2aa77b into main Nov 14, 2026
5 checks passed
@max-sixty
max-sixty deleted the thread-card-gap branch November 14, 2026 18:22
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.

2 participants