Repository navigation
Stand the panel's controls at its views' foot, under their name - #3400
Merged
Merged
Conversation
A review prototype, not for landing as is. A switch (`arrangement()`, every line marked PROTOTYPE) draws the panel in one of three arrangements: - today: the head at each view's top edge, as on main. - foot: the whole head stands under the view, on the row, so tabs, filters, search, Back, Resolve and Close stay put however the view grows; a list fits what it shows instead of holding the height it opened at, and a press in the head no longer holds a thread's view. - names: the view's name stands over it with nothing to press, and every control goes to the foot. The leaf menu's lists move their way back to the list's foot under both. A sample names its arrangement with a class on its main, else follows a playground's `arrangement` choice on its root. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # skills/leaf/kernel/kernel.json
# Conflicts: # skills/leaf/kernel/kernel.json
# Conflicts: # skills/leaf/kernel/kernel.json
The floating panel stands on the window's foot, so an open view grows and shrinks from its top edge. With every control at that top edge, each change of height carried them from under the pointer, and the panel held heights to stop it: a list kept the height it opened at across tabs, which hid most of a longer tab (On Claude showed 211 of its 605 px), a press in a thread's head held the thread, and a refused turn kept its room. The user chose on 20 October, comparing three arrangements on a review page, to keep each view's name over it and stand its controls (the way back, tabs, search, Next unread, On the page, Resolve, more room, Close) at its foot, on the row, which the view's growth never moves. This reverses the 12 October overhaul's "where the user is at its top edge"; the module header records both. The menu's lists follow: their name over them, the way back to the menu at their foot over the leaf. What that makes unnecessary goes: a list now fits what each tab, filter or search the user presses shows, holding its height only against news; a press among a thread's controls holds nothing; a refused turn's room is gone. A press inside a thread's view, and the caret in a rewrite, still hold its height, since what they grow would carry presses inside the view. Tests: the head selectors move to `.lf-fp-controls`; tests that a tab kept a list's height now check that the list fits it while its controls stay put; the menu's way back is its list's last row and reads "Menu". Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts: # notes/floating-panel/GOAL.md # skills/leaf/kernel/kernel.json
leaf-agent
previously approved these changes
Oct 21, 2026
# Conflicts: # skills/leaf/kernel/kernel.json
leaf-agent
approved these changes
Oct 21, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 21, 2026
The browser checks for the floating panel now follow the menu and sizing behavior introduced by #3400. The [failed main run](https://github.com/max-sixty/leaf/actions/runs/39524129458) clicked the new “Menu” back row and expected the menu to close; that row returns to the root menu by design. The test now clicks an actionable Annotations row. The long-thread view left 98 px of a 900 px window visible above the panel, so its fixed 100 px assertion failed despite the intended page band remaining visible; the assertion now checks that the band is at least 10% of the window. Both affected tests failed before this change and pass on this head: `test_a_thread_s_view_is_as_tall_as_its_messages` and `test_a_menu_row_that_puts_the_menu_away_leaves_the_user_on_the_leaf`. The same focused run also included the separate anchor test and passed all three cases on current `main` plus these repairs. Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
`test_refused_reply_retains_its_live_foot[panel]` has failed since #3400 (bisected to eacf650). The refusal arrives as news, and the shift watch read the panel's head moving down 69 px and its controls moving up 21 px as moved without input. Cause: #3400 stands the panel's controls over its field at the view's foot and lets a refused turn keep no room ("A refused turn no longer keeps its room"). So when a provisional reply is refused, the turn leaving lowers the panel's head, and the two lines given back to the field raise the controls over it. The Send button and the passage after the panel hold still, which the test's pose check reads. This accepts #3400's motion: the panel case now consumes, at the refusal, the vertical moves the shift watch reports inside the floating panel, and nothing else. The other places, and every later step of the panel case, stay strict. The behavior the test gave up is "a refusal moves nothing in the panel". Max may reverse this by asking for the panel to keep its height against a refusal, as it already does for a list against news, and for the field to keep its height through a pending send; then this expectation goes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
A reply refused in the floating panel's thread moved the panel without input: the provisional turn leaving lowered the panel's head 69 px, and the words handed back to the field grew it a line, carrying the controls over it (Back, Quiet, Resolve) up 21 px from under the user's aim. `test_refused_reply_retains_its_live_foot[panel]` has failed since #3400 (bisected to eacf650). Cause: #3400 stood the panel's controls at its views' foot, over the field, and dropped the refused turn's held room (`spare`) as unnecessary once the controls no longer stood at the head. The refusal is news, so the head moving and the field growing under the controls both broke the Stability contract. Now a refusal holds both, through the existing holds: the view keeps its head where it stood with the turn (`holdThread`, as a press's hold does, released by the user's next turn or another view), and the field keeps the height the send left it at, the words it hands back scrolling inside it under the refusal's cover, until the user next writes or presses in it, which grows it as typing does. Both are taken before the frame shows the refusal. This replaces the earlier commit on this branch that consumed the panel's moves in the test; the test is back to its strict reading, as tend's review asked. Behavior changed: after a refusal the panel's thread view keeps the refused turn's room empty until the user's next turn, and the field grows to the returned words only at the user's next input in it. #3400's layout and its list fitting are unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
#3939) Adds a nightly macOS run of every test tier, and fixes every test that failed in its first run or in the Linux nightly beside it: 89 tests in [run 40156291557](https://github.com/max-sixty/leaf/actions/runs/40156291557), 60 of them only on macOS. ## The macOS nightly `ci.yaml` gains a `test-macos` job: every tier on `macos-15`, `-n 2` on its three cores, in the daily schedule and a dispatch. It belongs to `ci`, so a failure turns that run red and reaches tend through the existing `workflow_run` trigger, with no tend configuration change. GitHub doesn't bill hosted runners for public repositories; the job holds one of the account's macOS slots for about three hours. The test step names `shell: bash`, without which a step runs without `pipefail` and piping pytest through `tee` reported the first run's failures as a green job. The setup action's Ubuntu mirror step now runs only on Linux. `tests/AGENTS.md` counts `test-macos` among what tend repairs and leaves only failures no CI run shows to local sessions. It drops the instruction to confirm a macOS-only failure at normal priority because `taskpolicy -b` slows headless Chrome: a test that fails on a slower host depends on timing, and the fix is to the test. `running-tend` tells the session fixing a red run, which has only a Linux runner, to verify a macOS-only fix by dispatching `ci` on its branch. ## The fixes, by cause Product fixes: - A drafted margin card rose against the window's foot and never came back as the draft shrank (#3524). It now holds the top it opened at and drops back. - A tapped pin reseated 11px lower as it unfolded, because the hold-to-read toggle was pressed before the browser focused it (#3341). - A page's first thread card could cover its passage, because the placement that makes room was dropped while Floating UI loaded (since #1526). - A heading's "Copy link to section" stayed at the heading's far end after the window narrowed and widened, since every engine keeps its last `position-try` fallback (#3836). It now picks its place from the current width. - Putting the response bar away moved focus off the button the press had just focused, so the next `e` found nothing (#3756). - A trace's image-tools status shared a class with the image's loading notice, whose rules hid it (#3707). - WebKit scrolled the outer page 1,386px when a sample editor took focus (#3634). - In draw mode a press left the previous press's release timer pending, so a fast second click reached the page. - Hint refreshes read the geometry of every target inside a closed disclosure, forcing layout of skipped content. - A sidebar page's sticky track clipped focus rings (#3918). A stuck track body now keeps the ring's room inside its edges, so its blocks stand 5px in from each side. - Tab revealed a block's Copy flush with its scroller, cutting its ring (#3916). - The hidden "my change" word inside a choose group took a cell's padding and read as clipped content (exposed by #3837's check). - Visual review case buttons kept their wide padding after the first breakpoint crossing, a Chromium restyle bug avoided by making the case list a plain container. - A held shot's scrolling stage didn't declare that it holds its height (#3703/#3704). - When the log refused a reply, the floating panel's head moved down 69px and the restored draft pushed its controls up 21px (#3400). Through a refusal the panel now holds its head and the field its height, on the holds a press already takes; the refused turn's room goes at the user's next turn. - A reply box's ↑ (edit your last message) appeared only after an unrelated repaint once its last message became editable (#3855). Every message draw, by any thread reader, now recomputes that row's keys. - A trace's images took the page's scroll anchor, so a lane change in the timeline scrolled the page 62px under an arrow key; they no longer anchor scroll. The trace overview wrote its window's new start before reading its size, so for one layout the window ran past its strip and Chromium scrolled the page up to 838px; it now reads before it writes. The image tools' status keeps its line when its text clears. - Web Awesome's radio group moves focus on an arrow with a bare `focus()`, which Leaf's ring scroll margin turned into a page scroll. The vendored bundle is patched (`build/vendor.mjs`) so both calls pass `preventScroll`. - A Leaf page inside an iframe took focus from the page around it when it finished arriving. Its arrival recovery now runs only at top level or in a frame that holds focus. - The margin rail's one Tab stop stayed on whichever row last held it, so a resize could leave it below a row the user sees first. It is now the highest row in view; a focused row keeps it. - A resize that moved a sidebar page's track into the page, with neither place made by the reader, took the track's place over the page's: live-progress jumped 1861px (#3918). On a tie the page's own place wins. - The whole-page rule read a shut disclosure whose children are all generated as showing what it holds (#3908); it now skips only `.lf-ui` apparatus. - The gallery revealed its stamped frame at the centre, carrying the pressed button 45px; it now scrolls only as far as needed. Test fixes: - The Codex fixture copies the running interpreter as `codex`; on a framework Python, as on the runner, the copy fails its code signature and macOS kills it at launch. That broke 39 tests. The copy is now re-signed ad hoc, and the fixture no longer leaks `PYTHONHOME` into the command it runs. - The plain-HTTP copy test missed Chromium's lower-cased host; the event-door refusal test read its answer after the server's reset; the stale-keys sweep raced the browser entering fullscreen; the words watch didn't credit a blur from a press elsewhere. - Several tests read state before it settled (a shown gesture's arm, a side list's smooth scroll, a sample's focus returning, a held reply's menu), and now wait for it. Assertions predating #3830, #3916, #3670, #3673 and #3217 now read the current behavior. - Three waits fixed their own deadline instead of the suite's, among them the async-probe test's 500ms. - The command hub's record now sticks in view, so the Atlas journey opens its news before reading each row; the region-capture journey drags over the unreadable image it means to fail on (#3861 draws only the element that alone paints the crop). - The touch-capture removal test, which fails intermittently on main, now reads the shelf right after the tap and names the elements the tap reached, so its next failure says whether the tap missed or the image came back. - The feature-gallery scroll pass allows a third of its steps to write the contents' `aria-current`, as gestures already do, since the count depends on where sections fall under the platform's fonts. The branch also merges the four open `grind/f-main-tests-*` pull requests, whose fixes cover five more of the run's tests: #3871, #3882, #3887 and #3906. This pull request lands them. Each fix was reproduced failing and then passing by node id, on this Mac or, for a Linux- or runner-only failure, against a run's log, except where its commit says otherwise. Dispatched full runs on this branch ([40156291557](https://github.com/max-sixty/leaf/actions/runs/40156291557), [40186545420](https://github.com/max-sixty/leaf/actions/runs/40186545420), [40196342887](https://github.com/max-sixty/leaf/actions/runs/40196342887)) check both platforms; the second took the macOS job from 86 failures to 38, most of the rest fixed since. A few macOS-only failures pass on every local attempt (two reading-place tests, a scroll repaint, Back from a thread, opening a line under the last, the Android composer's Return, margin-entry order, a card paging on, a turn arriving out of view) and have no fix here; once this lands, the macOS nightly reports them to tend. > _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.
The floating panel stands on the window's foot, so an open view grows and shrinks from its top edge. With every control at that edge, each change of height moved them, and the panel held heights to stop that. A list kept the height it opened at across tabs, which hid most of a longer tab (On Claude showed 211 of its 605 px). A press in a thread's head held the thread's height, and so did a refused turn.
On 20 October the user compared three arrangements on a review page and chose this one. Each view keeps its name over it, and its controls stand at its foot, on the row, where the view's growth never moves them. Those controls are the way back, tabs, search, Next unread, On the page, Resolve, more room and Close. This reverses the 12 October overhaul's "where the user is at its top edge", and the module header records both decisions. The menu's lists follow the same pattern: their name over them, and the way back to the menu at their foot, over the leaf.
What this makes unnecessary is removed:
lf-reveallistener are deleted.spare).Two holds stay, because they protect presses inside the view rather than the old head: a press inside a thread's view, and the caret in a rewrite.
Where to look:
skills/leaf/assets/runtime/floating-panel.js: the header's "Opened" bullet;head(the name),controlsandcontrolsTemplate;room,holdRoomandrefit; the reducedpressAt/judgePress.skills/leaf/assets/styles/floating-panel.css:.lf-fp-head,.lf-fp-controls, and the menu list's flex column with.lf-fp-menu-rule..lf-fp-controls. Tests that a tab kept a list's height now check that the list fits the tab while its controls stay put, and the menu's way back is its list's last row, reading "Menu".The focused browser and journey tests for the panel pass.
test_website_server.py::test_a_website_turn_posts_its_answer_when_the_move_is_settled_firstfails here and on the branch's base alike.