Repository navigation
Simplify Web Awesome integration and redundant record handling - #3428
Merged
Merged
Conversation
Load Web Awesome's public theme through the existing CSS pipeline and retain Leaf's public token/part overrides in the shared document/shadow sheet. Remove the CSS parser, virtual theme module and dynamic stylesheet registry. Replace the custom transition engine and AST rewriter with a narrow guard for the reproduced select/tooltip reopen race. Keep upstream animations and APIs; drop unused Boolean cancellation settlement and its synthetic tests. Remove the partial schema-completeness interpreter from exact-format record reads. Malformed current-format data now fails at use rather than disappearing. Keep revision resource closure without persisting unused dependency edges.
# Conflicts: # skills/leaf/kernel/kernel.json # skills/leaf/kernel/runtime/bundle-user-intent.js # skills/leaf/scripts/leaf/state.py # tests/model/test_user_views.py
leaf-agent
reviewed
Oct 21, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The new early return after a superseded tooltip hide leaves wa-after-hide unissued, but Web Awesome's copy button waits for that event before restoring its icon and clearing isCopying. I reproduced this with a copy button whose tooltip reopens on wa-hide: after the feedback period, it remained at isCopying=true, status="success", and ignored another copy. The select reopening test still passes, but this path needs a completion or cancellation outcome that releases consumers of the superseded hide; the deleted copy-feedback case covered it.
leaf-agent
approved these changes
Oct 21, 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.
Keep Web Awesome's controls while removing Leaf-owned integration machinery. Load its public theme through the existing CSS build, map Leaf's palette at the document root so upstream derived tokens use it, and deliver token/part overrides through the existing shared document/shadow stylesheet. This removes the theme parser, virtual JavaScript theme module and dynamic stylesheet registry.
Replace the custom transition engine and AST rewriting with a small guard for the reproduced select reopening race. Tooltip transitions remain unmodified, preserving the completion events Web Awesome's copy button consumes. Upstream keeps animation and public API ownership; unused Boolean cancellation settlement is removed. Keep the existing documentation-comment patch that prevents reconnecting controls from accumulating nodes.
Also remove the partial schema-completeness interpreter from exact-format record reads and unused persisted dependency edges from revision resources. Current-format malformed records now fail at use rather than silently reading as absent; resource capture still follows the full dependency closure.
Validation: browser build and
pnpm run check; changed-file lint; focused Python model/process coverage; focused normal/reduced-motion select reopening, root palette customization, light/dark menu contrast, typography and focus in the document and declared shadows. An independent browser task exercised copy and command search. Matched menu and screenshot-control captures are byte-identical. Vendor/generated line changes are excluded from maintained-code savings.The joined-turn Codex fixture failures and its undefined
write_recordare inherited: the exact failing case reproduces on base80bb050e3, with its original record reader, and appears in main CI. Existing repairs are tracked in #3431 and #3427.