Repository navigation
Floating panel: walk position in the panel, the more-room mark on a line, and leaving a thread as the banner did - #3090
Merged
Merged
Conversation
… banner A reader who has chosen nothing now reads with the Leaf panel. One page command, chrome.switch (chrome-choice.js), stands in both chromes: "Use the banner" at the foot of the leaf's menu and "Use the Leaf panel" in the banner's More menu. It stores the other choice for every page on the origin and reloads, since the runtime builds one chrome at boot. A sample takes its chrome from its containing page, so it offers no switch. The suite and the leaf-dev tools that drive the banner's controls (stills, journey, verify-site, bench-latency, record-demo, eval-user) pin the banner through CLASSIC_CHROME until a page stores another choice; the floating panel's own tests choose the panel as before. The test that a reader with no choice gets the banner now asserts the panel. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/kernel/kernel.json
The stills test's fake tab now takes `classic`, and the website server's fake contexts take an init script, as the real ones do since the dev tools pin the banner (CLASSIC_CHROME). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ine, and leaving a thread as the banner did What passes now stands at the panel, by the user's rule that whatever is not anchored to the page is anchored to the panel: a walk's position and Go-to's "No visible ..." are said where a notice is (the empty field, the line over the field, the leaf's peek), through a reading the shortcut bar exposes (`statusContextReading`), and the foot's status line stands down in this chrome rather than moving to the window's head. The more-room mark stands at the end of the line over the field, or of an open view's head, instead of a 24px strip across the field. assets/AGENTS.md gains the rule: a control takes only its own room. Leaving a thread opened from Threads matches the banner's Threads panel: Resolve goes through settleThread with a landing that moves the user to the next open thread (or back to the list), reversed by undo; Escape from an open view returns to the page (letGo) rather than the leaf. undo.js binds a reversal to the undo press (bindQueuedWork), as landGesture binds a settlement's landings, so a reversal that changes a view is the press's own rendering. Tests: the walk, the mark's seat, resolving onward, and the Escape and keys tests rewritten for the new landings. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
reviewed
Oct 16, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The more-room control moves into the reply field when a thread opens.
…on its row The field's children no longer include the mark, so a thread's reply no longer takes it back from the head or the line over the field. Taking a resolve back stands the user on the thread's row in Threads rather than opening its view, since the reopening arrives with the server's reading and a view opening then moved the panel under no press (the shift watch caught it on CI); undo.js is back as it was. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
reviewed
Oct 16, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
Undo misses the restored thread when resolving one of several open threads advances the panel.
Say so where the landing is built, and walk the two-thread test through an undo after the first resolve: the user stays on the second thread, and resolving it moves them to the reopened first. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 16, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 16, 2026
## Cause [Main CI run 38880972663](https://github.com/max-sixty/leaf/actions/runs/38880972663) failed two floating-panel tests after #3090 changed Resolve's landing. Resolving the only open thread now returns to Threads, so the page comment field is visible and the thread's Resolve button is no longer in the active view. Both tests still asserted the earlier route. ## Change Check the page comment field at the new landing. For the Skip to Leaf controls case, open the resolved thread through the Resolved list before checking that Skip focuses the leaf in a view with no reply field. The tests continue to protect the user routes they name. ## Verification Both affected browser tests pass together locally. The WebKit reply-room failure from the same main run has a separate runtime cause and is being repaired separately. > _This was written by Codex on behalf of max-sixty_ Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 17, 2026
Under the floating panel, "1 of 2 waiting on me · Ask" could lie on an open thread's last words for as long as the user wrote in it. A walk's position lasts while the user stands on the item it reached. With the caret in the panel, the walk reads where the user stands from the page's visible reading block, so after `m` lands on a tall ask the user keeps "standing" on it while writing a comment. Sending opens the comment's thread over the row with the caret in its reply, and the panel then routed the position to the leaf's peek, the overlay #3090 gave it over an open view. The peek was made for a notice answering a gesture, which passes; the position stayed. `passing` (`floating-panel.js`) now marks which words answer the user (`answers`), and only those reach the peek over an open view. A walk's position and Go-to's word go unsaid there. The empty field still says them until the caret enters it, and the line over the field does while no view is open. The folded leaf's peek is unchanged. `test_a_walk_says_its_position_in_the_panel` now walks to a tall ask, writes and sends a comment, and asserts the position stands on the line over the field and that the peek stays hidden over the comment's thread; it fails with the old routing. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 (1M context) <[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.
Three changes to the floating panel, from the user's comments on its review page.
What passes stands at the panel. A walk's position ("1 of 3 waiting on me · Ask") and Go-to's "No visible …" used to stand alone at the window's head. They now say themselves where the panel already says a notice: in the empty field, on the line over the field while writing, or in the leaf's peek over an open view or when folded (
floating-panel.js,passing). The shortcut bar exposes what its status line says between notices (statusContextReading,registerStatusContextPresentation), and the foot's status line stands down in this chrome.The more-room mark takes no room of its own. Past three lines the field used to reserve a 24px strip across its width for the mark. The mark now stands at the end of the line over the field, or of an open view's head.
skills/leaf/assets/AGENTS.mdgains the rule "A control takes only its own room".Leaving a thread opened from Threads works as the banner's Threads panel does. Resolve goes through
settleThreadwith a landing that moves the user to the next open thread, standing on its view (or back to the list with none left); undoing the resolve leaves the user on the next thread if they moved on to it, or stands them on the restored thread's row when they are back at Threads. Escape from an open view returns to the page (letGo) instead of the leaf.