Repository navigation
Unify floating-panel input and mode controls - #3634
Merged
Merged
Conversation
Keep search queries separate from retained comment and reply editors, with a persistent scope chip and narrow-screen match controls. Restore native editor selection synchronously when focus returns to a retained editor. Search tests now protect the shared field, draft continuity and existing keyboard routes.
Search navigation and expanded inline response choices grow above the field. Remove the narrow search grid that put controls beneath the query; search gives the field the space normally occupied by counts. Cover panel response expansion and search at narrow widths.
Search navigation shares the input row, All pages uses the common exit, and selected-passage responses open a native anchored picker. Remove transient context and response strips while retaining selection cues, errors, drafts and keyboard routes.
…nput # Conflicts: # dist/kernel/kernel.json # dist/kernel/leaf.js
leaf-agent
approved these changes
Oct 22, 2026
leaf-agent
added a commit
that referenced
this pull request
Oct 23, 2026
The floating-panel redesign in [#3634](#3634) moved “Other responses” beside the comment editor and gave the editor its own keyboard scope. The send-placement browser test still measured the wider response row, and the Escape test still looked for the shortcut on the old field wrapper. These checks now measure the editor's reserved frame and read its keyboard scope while retaining the word-position, scrolling, growth and Escape behavior assertions. The ten send-placement cases and the Escape case failed in [main run 39869500958](https://github.com/max-sixty/leaf/actions/runs/39869500958). All eleven pass locally after this repair. --------- Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
A one-line comment sent from a margin comment box opened its thread card 280 px wide, under the card's 320 px minimum (`--thread-card-min`), so `test_an_inline_thread_keeps_one_readable_card_across_page_claims[False]` failed from the 10-23 nightly on. Cause: #3634 moved the comment box's options trigger from a row under the field into a column beside it. The box's frame keeps the card's minimum width, but the origin Send hands the card is the field plus the frame's padding, leaving out the options' tracks since they disappear on Send. With the trigger in a column, that dropped its width from the card's, which then stood 40 px narrower than its box. Now the origin is no narrower than the frame's own minimum. A field narrower than that holds one short line, so the wider card rewraps no words. Behavior changed: a short comment's card opens as wide as the box it replaces (320 px), as before #3634, with the trigger kept beside the field. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
`test_sample_editor_focus_preserves_outer_scroll_and_the_caret[webkit_browser]` found the containing page scrolled 1,386px to a sample's editor after `focusDestination(editor, 'move')`, though every placement asks for no scroll. #3634 added a `focus` listener to LeafEditorView's contentDOM that writes the recorded caret, for arrivals that bypass `focus()` (native Tab and shadow-root delegation). It also ran inside the view's own `focus()`, writing the selection during the focus event, before WebKit finished its focus steps; WebKit then revealed that selection as it reveals a retained one, and the reveal crossed into the containing page. The listener now stands aside while `focus()` moves native focus, and `focus()` places the caret once focus has landed, as it did before #3634. Arrivals by Tab or delegation still get their caret in the arrival task. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
This reverts b493653 ("Open a short comment's card at least the card's minimum width"), which broke `test_send_grows_thread_around_the_words` in five of its parameters (bisected to that commit; origin/main passes them). That commit widened the origin Send hands the card to the box's minimum width, so a one-line comment's card opened 16-40 px wider than the field it grew out of. But the card taking the field's rectangle, with the options trigger standing beside it and leaving at Send, is #3634's and #3645's stated intent ("The card takes the editor's reserved rectangle. The Other responses button stands beside that rectangle and disappears when the card opens"), and it is what keeps the words still through Send. So the expectation #3634 replaced was the other test's: `test_an_inline_thread_keeps_one_readable_card_across_page_claims` asserted a card at least `--thread-card-min` wide, which a one-line comment's field rectangle no longer is. It now asserts the cap and keeps its reply-width check for readability. Behavior changed: a one-line comment's card opens as wide as the field it grew out of, below the card's minimum by the options trigger's width, as on main. 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]>
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
At 1200x900 a one-line comment's card opened by Send stood 280px wide, 40px under `--thread-card-min`, while the same thread reopened from its margin marker stood at 320px with the same left, top and height. A wrapping comment showed the same gap at the other bound: 552px at Send, 592px reopened. The card Send opens takes the comment field's rectangle, so the words keep their column through Send. #3634 stood Other responses in a grid column beside the field, inside the frame, so the field (and the card from it) was the frame less that column, while a reopen sizes the card by the frame's own bounds (`--thread-card-min` to `--thread-card`). The user chose on 2026-10-25 that the field is at least the card's minimum. The frame's grid returns to one track, so the field takes its whole measure, and the trigger stands 4px over the field's end in the head row the frame already reserves, where the card's controls stand once it opens. The frame's width bounds are then the card's, with no second clamp, and the boundary that holds the frame holds the trigger. Rejected: letting Send's card size itself as a reopen does, which drops the field's width and rewraps a wrapping comment at Send (3 lines to 2 here, the card 21px shorter); and hanging the trigger outside the frame, which a window edge would cut. Behavior changes in tests: the margin journey again requires the card at least the minimum (relaxed by #3939); the narrow response-field test asserts the trigger over the field's end rather than beside it; a new test holds Send's card to the reopened card's rectangle. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 25, 2026
The ⋯ that opens Suggest and the reactions moves from a bordered button beside the comment field into the field's corner, beside Dictate, and only while the field is empty. The draft's first word takes it away, so the field spans the whole bar in every state and nothing moves as the user starts typing. Tab and `e` still open the picker with words in the field; it then stands over the field instead of the ⋯. The user picked this on 25 October over keeping the button beside the field, hiding that button at the first key (which widened the field under the caret), and dropping it for keys only (which left a mouse or finger no route). selection.js's header records the choice and what it rejected, reversing #3634's placement. Behavior changes: - The field gains the button's 40px of the 294px bar, and a sent comment's message again ends at its card's Reply field. - A field holding words shows only Send in its corner; a pointer reaches the picker from an empty field, or by Tab and `e` from a draft. - A bar with only a target chosen shows Comment alone; its ⋯ appears once Comment opens the field. Tapping the floating panel's offer of selected words opened the picker: the panel opens the comment box on the release, and the click the browser delivers after it landed on the ⋯ now standing under the finger. The release claims that click, through a `claimReleaseClick` in pointer.js that held-word.js's own copy of the same rule now uses too. Tests: the picker test asserts the ⋯ inside the empty field, gone with words, and the field's width unchanged; it opens the picker by pointer from an empty field. Its panel touch case fails without the claimed click. The narrow-bar test asserts the field reaches the bar's content edge. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Oct 26, 2026
The ⋯ that opens Suggest and the reactions moves from a bordered button beside the comment field into the field's corner, beside Dictate, and only while the field is empty. The draft's first word takes it away, so the field spans the whole bar in every state and nothing moves as the user starts typing. Tab and `e` still open the picker with words in the field; it then stands over the field instead of the ⋯. The user picked this on 25 October over keeping the button beside the field, hiding that button at the first key (which widened the field under the caret), and dropping it for keys only (which left a mouse or finger no route). selection.js's header records the choice and what it rejected, reversing #3634's placement. It also replaces #4124's ⋯ over the field's end, in the head row of the floating frame, which landed on main meanwhile and only the floating presentation had. Behavior changes: - The field gains the button's 40px of the 294px bar, and a sent comment's message again ends at its card's Reply field. - A field holding words shows only Send in its corner; a pointer reaches the picker from an empty field, or by Tab and `e` from a draft. - A bar with only a target chosen shows Comment alone; its ⋯ appears once Comment opens the field. Tapping the floating panel's offer of selected words opened the picker: the panel opens the comment box on the release, and the click the browser delivers after it landed on the ⋯ now standing under the finger. The release claims that click, through a `claimReleaseClick` in pointer.js that held-word.js's own copy of the same rule now uses too. Tests: the picker test asserts the ⋯ inside the empty field, gone with words, and the field's width unchanged; it opens the picker by pointer from an empty field. Its panel touch case fails without the claimed click. The narrow-bar test asserts the field reaches the bar's content edge. > _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.
Search now uses the floating panel’s main field, with an explicit scope chip and inline match navigation. Switching between search and commenting preserves the comment draft and caret, and the input stays in the same bottom row.
Consolidate mode-specific controls into shared row slots, remove the All pages Close-only footer and transient context strip, and make Other responses an anchored native picker across passage, panel and widget composers. Search arrows use equal icon-button targets with the count preceding the pair. Update examples and browser coverage for these interactions.
Validation: focused browser checks cover search navigation, draft restoration, dismissal, response picking and errors; desktop and narrow touch layouts were reviewed with before/after captures. After integrating main, the two search browser checks and the full build/runtime/worker check passed (132 build, 518 runtime and 84 worker tests). Pre-commit checks passed. The independently reproduced blur-to-selection race remains a separate follow-up.