Repository navigation
Add Review a plan to the homepage and examples - #721
Merged
Merged
Conversation
leaf-agent
approved these changes
Sep 15, 2026
max-sixty
pushed a commit
that referenced
this pull request
Sep 15, 2026
…hot flip's margin command, and a ring specimen behind a closed tab (#734) The nightly suite went red on main with 4 failures and 22 errors ([run 34960165078](https://github.com/max-sixty/leaf/actions/runs/34960165078)). Three durable causes account for 25 of those 26 nodes; the fourth was already repaired by #732, which merged 24 minutes after the run started. Each cause is one commit here. **The website adapter 404s the startup beacon.** #717 added the public startup report, handled it in `worker/src/index.ts`, and required it in `scripts/verify_site.py` — but `worker/server.py` never learned the route. Every released document posts to `<page>/api/performance`; the deployed site answers at the edge, and a site served straight from the adapter has no edge in front of it, so the POST fell through to the base handler's 404. That is a console error on every page the adapter serves, which is why one missing route reddened 23 nodes of the suite's clean-console reading. The adapter now answers 204 at its own boundary, the way `end_headers` already adds the `Leaf-Session` reading the Worker would have. **`lf-shot`'s margin entry lost the flip's name.** #716 replaced adopted source controls with immutable margin projections and deleted contributor-owned margin command rows, adding a `marginEntry` `scope` option to carry the declaration across to a control the margin generates. `lf-draft` was cut over in that commit; `lf-shot` was not, so standing on Show before / Show after left the shortcut bar with nothing to say about the flip. It is now one `commandScope`, attached to the widget's own checkbox and projected onto its margin entry. **A ring specimen moved behind a closed tab.** #721 added an example that sorts ahead of `triage-board` in the corpus, so the first `.lf-grip` landed in a tab panel that arrives hidden. Nothing inside it is focusable, so the sweep read a ring the grip paints perfectly well as undrawn. The sweep now asks the runtime's `reveal()` before focusing, deriving the surface from where the specimen sits instead of from a tab order that follows the examples directory. The fourth failure, `test_conversation_readiness_waits_for_the_keyed_thread_list`, raised `Page.evaluate: Resulting promise was garbage collected` from the `armed` re-entrancy hack around `scheduleUpdate`. #732 replaced that arrangement with an explicit `performUpdate` hold, and the test passes on main as it stands. Nothing here touches it. <details><summary>Verification</summary> Each regression was reproduced on main and bisected to its origin with `git bisect run`, one node id per run under `-n0`: the shot regression to e790513 (#716), the ring regression to eb055b1 (#721). The adapter 404 is not a bisect — the route has never existed in `server.py`; it reproduced directly and the fix clears it. On this branch: - `tests/test_render_controls.py` — all passed, ring sweep included. - `tests/test_site.py` — 1 failed of 136. `test_the_interaction_gallery_drives_real_widgets` expected `Playing`; it passes alone under `-n0` and passed in the failing run above, so it is timing under parallel load rather than this diff. - `tests/test_render_commands.py`, `tests/test_render_margin.py`, `tests/test_website_server.py` — 193 passed, 4 failed. All four are `bin/leaf` subprocesses reporting `no browser launched`; each reproduces on unmodified main in this sandbox and each was green in the failing run above. - `uv run pytest tests` — 1119 passed, 4 failed: the umask, read-only `/tmp`, and `bundleLayer` cases this sandbox cannot run. - Changed-file pre-commit hooks pass. No TypeScript changed, so the website-worker gate is unaffected. </details> --------- Co-authored-by: leaf-agent <[email protected]>
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.
Add “Review a plan” as the first homepage example and a core gallery entry. The plan uses Tend’s sandboxing work to show an agent explaining the existing behavior, concrete file changes in implementation order, and validation before implementation.
Three drafts and two anchored discussions show setup and shutdown decisions converging, with runner support left as the final choice before approval. Include the fixture in the generated corpus and publish refreshed catalog images.
Validation: the full local suite (1,120 passed), focused fixture/replay checks (5 passed), Chrome rendering in desktop/mobile and light/dark, selection persistence and approval, full pre-commit checks, and the complete site build. The homepage card and images were inspected in the browser.