Repository navigation
List what a layer input reads in one place, and name two kernel sheets it missed - #6377
Merged
Merged
Conversation
…s it missed `layer.input_paths` and `layer.package_files` each listed what a layer input reads, by different rules: `input_paths` followed the imports of every top-level `.css` in an input, while composition and `package_files` follow only the sheets the layer composes. Both now take one walk, `_input_entries`. `input_paths` resolves each path it yields, and `package_files` reads the files among them. A new test records every sheet composing the layer reads and holds `input_paths` to it. It found two kernel sheets `composed_sheets` reads by name that `KERNEL_STYLES` didn't list, `styles/control-face.css` and `styles/shadow-leading.css`, so a `leaf-dev preview` missed an edit to either. `KERNEL_STYLES` now names both. Behavior changes: `input_paths` no longer follows the imports of a top-level sheet the layer doesn't compose, and a package copy reads `instructions/` one level deep, as composition does. Two tests that used one scratch directory as the kernel and then as a package now put the importing sheet in a package.
leaf-agent
approved these changes
Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
layer.input_pathsandlayer.package_fileseach listed what a layer input reads, by different rules:input_pathsfollowed the imports of every top-level.cssin an input, while composition andpackage_filesfollow only the sheets the layer composes. Both now take one walk,_input_entries.input_pathsresolves each path it yields, andpackage_filesreads the files among them. This follows #6011, which madepackage_filesthe one listing for package copies.A new test records every sheet composing the layer reads and holds
input_pathsto it. It found two kernel sheetscomposed_sheetsreads by name thatKERNEL_STYLESdidn't list,styles/control-face.cssandstyles/shadow-leading.css, so aleaf-dev previewmissed an edit to either.KERNEL_STYLESnow names both.Behavior changes:
input_pathsno longer follows the imports of a top-level sheet the layer doesn't compose, and a package copy readsinstructions/one level deep, as composition does. Two tests that used one scratch directory as the kernel and then as a package now put the importing sheet in a package.Tests:
tests/model/test_interact_layer.pypasses.dev/tests/model/test_interact_preview.pyhas the same 8 failures on its base as with this change, in the desktop-chat, file-subscription and Codex-feedback tests.