Repository navigation
Remove the classic chrome: the floating panel is Leaf's only chrome - #3100
Conversation
leaf-agent
left a comment
There was a problem hiding this comment.
The browser test migration is still incomplete. test_each_chrome_offers_the_other_and_the_choice_holds fails on this head at its first assertion because .lf-banner is hidden; test_a_window_sample_reads_with_the_chrome_its_element_names also still expects the removed chrome attribute to select a banner. The former failed in a focused run, while the new default-panel test passed. The remaining banner-only journeys need to move to panel routes or be retired before this draft is ready. Other tests and still states still drive banner controls, so removing the suite's classic preference exposes those assertions as well.
leaf-agent
left a comment
There was a problem hiding this comment.
The gallery's progress and image preview stills now look for sample threads in the outer page. Both thread IDs are declared on #bg-panel-sample's iframe, so open_thread(page, ...) waits for rows the outer panel cannot draw. Keep those captures in the sample's panel; the inline suggestion shows the progress state, and image_preview needs the same frame route.
leaf-agent
left a comment
There was a problem hiding this comment.
The test-helper migration removes names that browser modules still import, so those modules fail during collection before their panel journeys can run. For example, test_composing.py still imports admit_before_presenting_comment from render_harness.py, and test_resolving.py still imports LIST_STATE from render_cases_interaction.py; focused pytest collection on this head raises ImportError for each. Other modules still import removed helpers such as focus_panel_thread and QUEUE_ROW_SAYS. Carry their callers over to the panel helpers, or keep a helper until its callers are migrated, so the tests can collect and exercise the new chrome.
The page's comment is sent from the panel field's Send, and its view put away so the reply arrives unseen until its thread opens in the panel. The approval is read from the leaf's menu under Versions, one opening at a time since the menu holds the rows it opened with; offline, Versions itself waits for a reading of the log. A compact reader's interactive reply opens in the panel's thread view, and the primary reader taking an Ask leaves that view shut. A thread's frozen widgets are drawn in the panel's open view: the thread is opened before its widget reply arrives, with turns that already fill the view, so the awaited answer lands below the fold rather than growing the view under a held presentation. Deleted, their subject being the side panel's thread list renderer (`leaf-thread-list`) and its cards, which the panel replaces with no test-reachable `present()` seam: choosing beside a withdrawn thread's notice holding the chosen card, an unavailable list keeping the selected conversation, readiness waiting on the keyed thread list's paint, and a sibling list's preparation fault leaving the primary reader's native content connected. The admission test loses its expanded shortcut bar case with the bar. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A reply's quoted sample, its table and a thread Ask's Done are read in the panel's thread view (`open_panel_thread`), scoped to that view; the table case runs at a phone's width, where the view is narrower than the table, as the side panel's 420px once was. Accept all is the leaf's menu row `blanket:accept`, and the runtime's private busy animation is sampled on the panel's Threads mark. Done's keys are read from ARIA alone now the bottom bar is gone. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The reference opens from the leaf's menu (Keyboard shortcuts) where the bottom bar's "? more" and "? command reference" stood, and closes back to the leaf; its close control is "Close the command reference". `?` opens it at once, so each test presses it once. A walk's "Command 1 of N" is read from the panel field's placeholder; the bottom status's boundary accent has no panel counterpart, so that assertion is gone. `g T` and `g V` land in the panel's Threads view and the menu's Versions list; a pointer opening Threads now puts focus in the view, so the assertion that it stayed on the door is gone. The resolved thread is found under Threads' Resolved filter, and the scope reads "Threads" where it read "Threads panel". Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The held-key tests read the banner's version menu, its status detail, its More menu's Keyboard shortcuts, the side panel's open surface and the page-comment card. They read Versions in the leaf's menu, the status the panel's empty field says, the menu's Keyboard shortcuts row, the panel's open view (`data-open`), and the panel's field; `g u` lands on the unread message in the panel's thread view, which marks it by `data-event`. Deleted test_local_thread_keys_distinguish_local_matches_from_complete_history: before the first state answer the side panel listed the user's own page comment, so Find's Enter and the `t` walk reached it, while `w` (waiting on me) was held. The panel's Threads lists nothing before that answer, `t` there is neither run nor held, and Threads has no waiting-on-me filter: a gap, reported rather than ported. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The panel's controls draw their ring inset, so a band laid outside one's box covers nothing: the cover reading is held to the probe page's own control. The grip test's shape (a control at z-index 1 over its neighbours in a positioned holder) is planted on the probe page, since the side panel's edge grip is gone. The reduced-motion ring stands on the first row of the panel's Threads. Deleted the half of the marked-element test that hovered a Threads row to raise the element's contour: the panel's Threads rows light no passage on hover. The test keeps its first half (nothing drawn under the pointer) and is renamed test_a_marked_element_draws_nothing_under_the_pointer. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The hosting tests read the banner's status text and detail and its More menu's session reference button. They read the status the panel's empty field says, and the leaf's menu's Copy session reference, whose press copies the reference and says so in the field. The banner showed the reference as "Session N" to read aloud; the menu copies it without showing it (the About list shows copy rows' text only where there is no clipboard), so the test no longer reads the number on screen, and the 390px check of the banner's overflow menu has no counterpart. Deleted test_a_website_example_names_its_limited_agent: the banner's status sentence with its two links; the panel suite's test_a_website_copy_says_who_revises_it_and_where_leaf_comes_from covers the field's words, the row's Install Leaf notice and the menu's links. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The first-paint test held the shell at the banner's height for each width; no chrome stands over the window's head now, so the page starts at its top at every width, and startup still moves none of it. Deleted test_a_restored_auxiliary_surface_leaves_the_page_where_it_painted's restore cases: a saved On or Threads side panel, its drawn width and its covering rule came back after a reload without moving the page. The panel's views last while they are used and are not restored. Its `contained` case, that an isolated sample does not inherit its host's saved chrome, is kept as its own test on the chrome's one saved preference, the panel folded to the leaf. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
An agent-written comment keeps its label in the panel's thread view, where the user replies from the field and resolves from the view's head; a refused state read keeps the reply being written in the panel field, and the remote resolution it carried shows in the view's notice. A refused read keeps the leaf menu's Versions list, opened by its keys, and its focused row. Standing in a thread about a visual goes through the view's On the page, and a reply's wide widget and a message's marks are read in the panel's view. With no top chrome, the document starts at the window's head and leaves room at its foot for the panel, which a print takes away; a sidebar track sticks at the window's head; a handed-over URL lands on a page showing the panel. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The freshness tests read the bottom status's detail and the side panel's thread cards. They read the status the panel's empty field says (offline, and the agent's newest work words), and the rows of the panel's Threads view for news a read brought. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The journey sent its comment with the Threads side panel open and read the turn on the side panel's card. The send now opens the thread's view in the panel, its reply in the field, where the user goes on writing. Behaviour that changed with the surface: - The streamed opening and the final answer show at once in the view (the answer completes the streamed message in place), so the answer is timed from its own message, and the click/arrive reveal cases of a held answer collapse into one "here" case. - The receipt-beside-held-news geometry (the gap between the longer stale receipt and the card's notice) has no panel counterpart, since held news reads in the view's head; the test keeps that the first message's head holds still as the receipt lengthens. - The agent's resolve is held as "Resolved" news while the user writes. - Elsewhere, the thread's Threads row was the answer's shown sign; the verifier no longer reads rows, so the test opens the thread from Threads' Open list and finds the answer there. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The chrome-held surface of each reply session is now a thread about the whole page open in the panel, whose reply is the panel's field: a click in the field leaves the view's reading where it stands, a widget's input in a message keeps its focus and the view's scroll, and the admission, resolution-lifetime and stays-open cases run against the panel's view and its head's Resolve/Reopen. A passage thread keeps its margin card case. A page drawing no margin continues a displaced reply in the panel (no longer held through the side panel's `present`, which has no panel counterpart; the Tab that comes after the replacement still keeps its place). Behaviour that changed with the panel: resolving from the panel moves the user on to the next thread; agent settlement after Escape closes the panel's inactive reply box, calibrated as the margin case already was; reopening a resolved thread shows its saved reply but leaves the caret on Reopen rather than putting it in the reply. Deleted: test_replaced_reply_compositions_keep_their_carets_and_leave_commands. Two agent-resolved compositions displaced by a replaced patch were each reachable from Threads with their words and caret; in the panel the first opens as "Resolved · reopen to reply" with its retained words hidden, and `c` puts the view away. A panel gap, reported. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Opening a thread in the panel acknowledges what it shows, a wide code reply included; a refused automatic read leaves no read in the log until a new visit reads it; a modal over the panel holds the read of a thread opened behind it until Escape; and a read receipt moves nothing in the open view. Each reads the log rather than unread marks, which the panel's view does not draw. Deleted, each the side panel's Thread card surface with no counterpart in the panel's view, which draws no summary checkpoints, read boundaries or unread labels and offers no Next unread: a summary's hidden originals staying unread until Next unread expands them, Next unread revealing a resolved summarized thread (twice), Threads' d/u scroll pair kept apart from Next unread, and a sample's message read once the containing page's grown banner stops covering it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The Design-mode check on a reply's hoisted margin entry opened its thread in the Threads side panel; it now opens it in the panel's thread view and steps out of the reply's caret before `l`. The version a stamp lands is read from the page's installed revision rather than the banner's version label. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…views The two status comments' quotes were read off the Threads side panel's cards; each is now read in its thread's view in the panel, the one whose words the revision took away still detached. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The gallery journey reads the agent's status off the leaf's name, finds the map Ask in On me (reaching it on the page by its Decisions tab, since an answerable On card offers its answers rather than a way to the ask), opens the media thread through Threads, reads the earlier version under the menu's Versions and the second page under Navigate › All pages, reads the approval's gating in Versions, and puts the design comment's thread view away with Escape. The Threads tab's presets now each open one thread in the sample's panel, so the test asserts which thread and its title there. Gone with the side panel: the counts of visible cards per preset, the "Find in threads" search, the filter disclosure, and the progress fold's expand and collapse inside the card; the panel's own suite covers its filters and search, and the fold is the thread renderer's. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The module tests opened the side panel's Threads and the page-comment card. They open the panel's Threads and count its rows, send the page comment from the panel's field, open a reply's thread in the panel to find the widget it carries, and read a comment on code words as found by its quote in the thread's view. The registry-held test no longer reads the page comment's message before the first state applies: the side panel drew the user's own send at once, but the panel opens its view saying "This thread is not on the page." until then. That is a gap, reported; the test checks the send is announced and its thread listed once the registry arrives. The composer test no longer asserts the page comment has no field before `c`: the panel's field stands in its row from the start. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
`test_a_shot_compares_its_frames_with_a_direct_divider` read "show before", "show after" and "adjust the comparison" off the bottom shortcut bar, which the floating panel replaces with no key hints. The keys those hints named are pressed right after and their effects asserted (Space, Enter, the arrows, End), so the hints lose their test and the keys keep theirs. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The page comment card and the Threads side panel's reply were two of the composers the dictation journey checked. Both are now the panel's field: it takes the page comment, then the opened thread's reply stands there empty with the microphone, takes a reply and restores the microphone once the send clears it, as the page comment does when the field returns to it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The Ask's action context was read as the bottom key line's text; it is now the dispatcher's reading of what the keys reach: digits 1–3 and Escape's let-go, unchanged when Tab stands on an option mark. The "add and select option" hint loses its read, the Enter that adds and selects being pressed and asserted next. On a phone window a Tab to the add field must leave it wholly clear of the floating panel at the window's foot rather than 20px clear of the bottom bar; the panel's scroll room leaves 11px. A card's activity marker opens no thread view, in place of no side-panel receipt. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
- A cluster's arrow walk says "Action N of 2" in the panel's empty field, where the bottom status said it. - An accepted suggestion's receipt is not repeated as a passing notice in the field, in place of the bottom status's notice. - A decided suggestion's pin no longer waits for the agent's comment text to show: only the hidden side panel drew it; `told` already waits for the page to apply the comment before the pin is measured. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The phone's toggle for annotations moved from the banner's More to the leaf's menu under Annotate; the test taps that row, and reads its word turn from Hide to Show, with the same assertions on the pin and the page's boxes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Deleted, their subject being the old surfaces:
- a side panel or the On drawer standing over the rail, with the banner
offering the Page Map in the markers' place: the floating panel stands at
the window's foot, over no rail, and has no Map control on a desktop;
- the banner offering the Page Map wherever the markers are pins: the leaf's
menu lists Page Map only where no keyboard reaches `g Shift+P`, whatever the
rail does, so a mouse user on a desktop window too narrow for the rail has
no pointer route to the Map (a gap to raise, not a test to keep);
- Tab into the rail passing a marker scrolled under the banner: nothing
stands at the window's head now.
The live page's reading-position test waits for the resolve by the panel's
Threads mark ("Threads, 0 open") in place of the banner's toggle.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The readiness tests read the banner's status text and detail, its sign-off and version menu, the side panel's Threads, and the On drawer. They read the status the panel's empty field says (loading, offline, a failed start), Threads' rows and the thread's view, Versions in the leaf's menu (out of reach, disabled, while a malformed first state leaves interaction unresolved), and the On me mark and the menu's Accept all. test_a_current_auxiliary_choice_replaces_a_persisted_drawer_during_replay becomes test_on_me_claims_nothing_before_the_first_replay: the remembered On drawer and Threads replacing it during replay have no counterpart, since panel views are not restored; what it also held, that the On me mark and Accept all claim nothing stale before the first replay while the page comment takes words, is kept. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The floating panel shows a passage's thread only where the page draws it nowhere, so an anchored thread opens in its margin card whether or not the panel's Threads view stands open. Accordingly: - Answering in the margin: with Threads open, the marker still opens the card on the thread, and no thread view opens in the panel (it answered in the side panel's list before). - A new anchored comment, and a comment sent with `c` from a control, land on their card with Threads open too, and are left by the same levels as with it shut (passage, then page), in place of the side panel's list and its Escape. - Deleted, their subject being the side panel's list as a thread's destination: a note walked on inside the panel, and a marker pressed with Threads open. - A marker walk's "Marker N of M" is read from the panel's empty field; the bar's Escape hints lose their assertions to the Escape presses that follow; `?` opens the command reference at once; On me opens in the panel and still folds the cluster the user left. - Open-panel checks read the panel's `data-open` in place of the side panel's class. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Undo's offer is read from the dispatcher where focus stands (`available_commands`), the reading the leaf's menu greys its Undo row by, where it was read off the bottom bar's hint; a passing notice is read where the panel says it (the empty field's placeholder, the line over the field, or the leaf's peek). Threads are resolved from the panel's thread view and taken back with `z`; a refused page comment's optimistic message is read in the view its send opened. The version's approval is read from the leaf's menu, where an approved version's row stays pressable rather than disabled. A candidate whose thread widget prepares is arranged with that thread open in the panel's view before the widget's reply arrives, its turns already filling the view so the answer lands below the fold. Deleted: a pending suggestion and page comment surviving an accepted view that waits for a thread widget's preparation. Its hold came from a widget the side panel drew while the user pressed controls on the page; the panel draws a thread's widgets only in an open view, and a press on the page puts that view away, so the arrangement no longer exists. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The bottom status's walk position and notice are gone; the panel says whatever passes in the empty field's place, on the line over the field once the caret is in it, or in the leaf's peek over an open view. A new shared helper, `expect_panel_says` (render_harness), waits on those three, and the options' card walk, the On me walk's approval, and the outbox's notices read through it. The floating panel suite stops checking the bottom status stays hidden. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The add field's refusal of a pasted image is read where the panel says it, not from the bottom bar's notice, and the menu-stability test waits for the new version with `told` rather than on the banner's Latest chip. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…the page too (#3318) Since #3273 a thread's view in the floating panel, its head and its reply stand at what the thread is about, and an On card at its obligation, so the ask wears its ring and takes its digits from the panel. The margin's card follows the same reading: a keyboard arrival at a page target opens its thread's card (`followStanding`), and a folded pin there unfolds (`unfoldStanding`). Both read focus moving into the panel by a key as an arrival at the target. Opening a thread from Threads with Enter, or pressing Escape from its reply, opened the same thread's card beside its passage too, and the card stayed after the panel closed. On log-retention at 1400x900 the card stood at the window's right edge while the panel showed the same thread, in Chromium and Firefox; a pointer opening showed the panel alone. Bisected to #3273. Standing and arriving are now two readings in `standing-target.js`. A side can declare that it shows its target `beside` the page, as the floating panel now does. `placeOf` still counts such a side, so the ring, digits and walks are unchanged. `arrivalOf` leaves it out, and the margin's card and pin unfolding read it. Before #3100 the margin skipped the old side panel for the same reason, with a check naming the panel; the declaration replaces that. The margin header's sentence about the old side panel's Threads list supplying the accompaniment goes, since that list is gone. Behavior change: standing in the floating panel no longer opens, unfolds or closes anything in the margin. Two effects #3273 introduced this morning go with it: a pointer into a panel thread about a different thread closed an open card, and a key into an On card opened its obligation's card. A new test, `test_a_thread_opened_in_the_panel_by_the_keyboard_opens_no_card_beside_it`, opens a thread about an ask from Threads by Enter and expects no card while the view stands open after Escape, nor after the panel closes. It fails without the `beside` declaration. The standing, On panel, obligation walk, pins, scroller and thread-card selections and `pnpm run test:runtime` pass. Found by the overnight UI sweep. An independent review suggested moving the distinction into `standing-target.js` rather than checking for the panel in the margin. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
…side it (#3396) A survey of `notes/` against the code and history at d91b67b. Where a note's design has landed, its contract moves beside the code if it wasn't already there, and the note or section goes; what is still unresolved stays. - **Deleted:** `floating-panel/GOAL.md` (every departure is now recorded in `floating-panel.js` and `styles/floating-panel.css`; #3392 moved the last one, the draft posture, beside `drafted`, and this adds the no-key-hints decision to the header), `browser-reactivity.md` (its design is in module headers; why paints that must land in the turn use `render` moves to `assets/AGENTS.md`, and the margin's double draw becomes a TODO implementation candidate) and `chrome-and-covers.md` (`page-layout.md` holds the workspace decision; the `layouts.css` Workspace comment now records the rejected main-region-scrolls design). - **Trimmed:** `agent-usability-evals.md` drops the findings through 2026-10-12, which have landed. `comparisons.md` drops the phone-pin finding (#2680), the 4 October follow-up proposals and two landed lessons. `user-feedback-responsiveness.md` narrows delegated work to Codex and Pi (#3370) and drops "Explicit stdin" (#3375). `threads.md` drops request buttons (#1327), placement (#2134) and notification transitions. `shared-decisions.md` points at the recorded owner contract. `browser-support.md` drops two fixed entries and owners #3100 removed. - **TODO.md** follows each: #28 points at the module header, #25 asks for the board's write rather than an owner, the annotation-placement item loses its landed phone half, and the delegated-work and reply-budget items lose what #3370 and #3372 settled. - Smaller corrections in `shift-watch-cost`, `undo-reach` (#3271), `named-widget-interfaces`, `codex-integration` (`codex_tool.py`), the long-read eval's provenance comment, and `motion.js`'s fold comment. The runtime comment edits rebuild `kernel.json` only. No behavior changes. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
A version's sign-off obligation now serves `prompt.target: null`. It named `lf-approve`, the id of the classic chrome's Approve button, which #3100 deleted, so every served approval pointed at an element no page has. The approval asks about the version as a whole, and the chrome that presents it brings the user to it (page-status.js, `registerApprovalPresentation`). module-reading.md now says what an approval's target is. The served state's `prompt.target` becomes nullable, which the protocol check names as a served-state change (#3397). It is accepted at protocol 16 without a bump. Readers checked, now and since be98116 set protocol 16 (`git log -S prompt.target` finds no reader added or removed in that range): obligations/place.js `obligationPlace` reads the target only for a widget's obligation, and obligations/view.js reads it only inside the destination `obligationPlace` returns, which is null for an approval. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
A token scan of the runtime and bundled packages for object keys and methods no other file in the tree names found readings whose last reader is gone. #3100 removed the classic chrome's card summary and margin card but left what they read: the thread card's `unreadCount` and `statusFolded`, and its `incomingTail` and `messageTail` geometry. The goal reading's `openInterventions` and the design mode handle's `legendElement` are read nowhere either. No behavior changes. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ning words (#3422) Before an untitled thread's title lands, the panel's thread view and its Threads row headed the thread with the opening words of the user's first message, in a title's bold face, so the question read as the thread's name. While a title is on its way they now say "Generating thread name…" in the working message's dim face, its sheen included, as the classic chrome's rows did until #3100. A title is on its way while a session holds the page's claim and the thread waits on the agent's work (`attention` waiting on a workflow): Leaf asks the claimant's harness for one as the user's words are admitted, and the agent for one with its reply. Elsewhere, such as a page nobody has claimed or a turn that ended, stalled or was never picked up, the thread keeps its opening words. The opening words follow the placeholder in a visually hidden span, so a screen reader still tells pending threads apart; search, the margin and Page Map keep the opening words. The rule lives in `threadHeading` (`thread/messages.js`); `tests/browser/threads/test_panel_list.py` covers both sides of it and the title landing. A second commit deletes runtime readings nothing reads, which #3100 left behind when it removed their readers: the thread card's `titlePending`, `unreadCount`, `statusFolded`, `incomingTail` and `messageTail`, the goal reading's `openInterventions`, and the design-mode handle's `legendElement`. No behavior changes there. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Two facts in the browser runtime had several homes; each now has one.
**One cyclic walk.** Six walks stepped round their ends with
hand-written modular arithmetic instead of `cycledRow`, the step the
page walks (t, m, n) already share: the response choices
(`composing/selection.js`), the reaction choices (`reactions.js`), a
hint map's Tab walk (`keyboard/hints.js`), a cluster's margin entries
(`annotation-overlay/margin-projection.js`), a tab strip's arrows
(`lf-tabs.js`) and the visual review's n/Shift+n
(`lf-visual-review.js`). All six now call `cycledRow`, which
`widget-api.js` exports for packages and `module-input.md` documents.
The visual review's case walk also reports its position ("Case 2 of 3"),
as every other walk does. The comments that left tabs to a cyclic policy
of their own date from before `cycledRow` existed, when the only shared
step clamped.
The walk position's "came round" boundary goes too. Its only painter,
the classic chrome's `data-lf-boundary`, was removed in #3100. Since
then the panel has read only the position's words, and nothing read
`boundary` but a repaint equality check. So `boundary`, its timer and
`wrapped` are deleted, `cycledRow` and `stepFrom` return the item they
land on, and `module-input.md`, `how-it-works.html` and the comments no
longer promise an accent. The 900 ms hold that keeps arriving news off
the status line after a walk step stays.
**Panel motion through one door.** The floating panel called
`Element.animate` directly in three places, each with its own
reduced-motion gate, and the menu slide skipped the presentation check.
The menu slide, the view fades and the box follower (`box-motion.js`)
now play through `playMotion`. It is a runtime-only function that holds
the gate, the held end frame and the release, and takes the `easing` and
`delay` the panel needs. `motion(el, keyframes, ms, pseudoElement)`
keeps its package signature as a thin door onto it. `motionPlays()` is
the gate on its own, for a caller that has to choose before it animates.
The panel's seven timing constants are gone. Its durations and curves
are `--lf-motion-*` tokens declared on `.lf-floating-panel` in
`floating-panel.css`, read with `motionTime`/`motionEasing`. They live
in the runtime's sheet rather than the theme because a page keeps the
theme it vendored while a later runtime serves it. The view resize reads
`--lf-motion-disclosure`, and so do the CSS fades that repeated its 120
ms by hand. A probe of the menu, a view opening and closing, a growing
field and the fold recorded the same durations, curves and delays on the
merge base and on this branch, in Chromium and Firefox, and the computed
CSS transitions match too.
Two floating-panel tests used to finish every motion `HOLD_MOTION` held,
including the ones the page had cancelled. Finishing a cancelled motion
plays it again, and under `motion()` its end frame would then stay. They
now finish only what still moves.
Checks: `pnpm run test:runtime`, `pnpm run check:browser`, and focused
browser tests for each walk (reactions, response choices, hints, margin
entries, tabs, visual review, t, m, page search) and for the panel's
fold, view, menu, field-growth and theme-motion behavior.
`test_the_leaf_paints_inside_its_moving_focus_ring` and
`test_reactions_keep_all_six_buttons_on_an_occupied_target[390-keyboard]`
fail locally on the merge base as well.
> _This was written by Claude Code on behalf of max-sixty_
---------
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
The [failed main run](https://github.com/max-sixty/leaf/actions/runs/40075126204) has one remaining test failure on current `main`: `test_reading_a_thread_moves_nothing_in_it`. After #3794 replaced the unread rail with a New label beside the time, marking a reply read removes that label and narrows only `.lf-msg-meta`. The thread's content and reading position stay fixed. This change permits that metadata width to close while still requiring its position and height, and every other retained element's full box, to stay fixed. The test originally allowed metadata to close sideways in #1025. The allowance was lost when the old card view was replaced by the panel thread view in #3100. The run's three other failures, which expected the former wide layout size, are already corrected by #3798 on current `main`. The first PR check passed its Python tests but failed pre-commit because Ruff added a missing blank line between imports in `tests/journeys/test_thread_titles.py`. That formatting correction is included here; the focused `ruff-check` hook passes locally. Verification: the read-position test failed before this change and passes after it. All four failing cases from the main run pass locally as six parameterized cases with `uv run pytest -q -n0`. --------- Co-authored-by: leaf-agent <[email protected]>
test_a_live_revision_preserves_a_reply_after_native_tab opened and closed the leaf's menu with pointer presses (`expect_panel_offers`, since #3100) to see that a fresh document waits for a reply in progress. A press on the leaf is a press away from the reply's row, which ends its composition (thread/replies.js), so from then on only the open menu held the fresh document back: any state read between closing the menu and the test's Shift+Tab back into the reply reloaded the page under it. CI's Linux run lost that race once; at --cpu-throttle 20 it failed 3 of 6 runs here, in three different places. The test now opens the menu with Enter on the leaf and closes it with Escape, as test_live_versions does for the same reason, then nudges a state read so the page asks again whether it may follow while the composition holds. Forced the same way, the old pointer route loses the reply on every run. No product behavior changed. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…flash lf-tabs tinted a tab a walk revealed for 650 ms while Leaf's own arrival tint lasts --lf-motion-flash (1200 ms); it now asks flashDuration(), which widget-api exports and module-scroll-and-motion.md documents. Corner marks fade in the disclosure time instead of a literal 120 ms. The .lf-msg.flash rule, its keyframes and openPageThread's flash option outlived the classic Threads panel that applied them (#3100); nothing added the class since, so they go, and the motion-inputs test no longer reads a CSS consumer of the flash token. Durations used once with their own reason, such as the comment box's 240 ms growth and the busy dim's delay, stay literal. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…logs, tint revisions (#4001) Six motion changes from the animation survey, each one picked on the survey page. **A send from the floating panel moves as one stream.** Before, a reply sent in the panel's thread stood for a frame where the previous message stood, and the previous message then reappeared under the thread's name. `box-motion.js` carried the name but showed a resized scroller's content at its new scroll at once. A page comment's view also faded in place while its outline grew. Now the panel tells `box-motion.js` when a send begins: `theirs()` returns `"send"`, and `stream()` reads where each scroller's content stands before the send draws. Until the send's rendering settles: - A scroller's content is carried from where it stood at the send, its scroll included. The new turn comes up at the scroller's foot, and every turn above it rides with the name. This also holds in a view already at its cap. - A part new to the box rises with the box's top edge, cut at the box's old outline, so a view a send opens slides up out of the field. A send takes the panel's full 300 ms tween and skips the view's 90 ms fade. `test_a_send_moves_the_panel_s_view_as_one_stream` holds the first frame and checks that the name and every turn start the same distance below their rest. It fails without the stream. **Folds play in Firefox.** `foldBlock` animated from `calc-size(auto, size)`, which Firefox and WebKit lack, so there a resolved inline thread or a decided block suggestion retired in one frame. Firefox has no near plan for either feature (bugs 1896734 and 1945962 are unassigned). Outside Chromium, the effect now starts at `auto`, reads that height, and restarts from it in pixels before the next frame. An already-retired slot is drawn by an inline `display` that the effect's end removes. `notes/browser-support.md` records the evidence and when to delete the fallback, and the fold tests now also run in Firefox. **A refused reply folds away where it stood.** `transcript.js` folds it in every thread surface. The card's hold for a refused turn's room grows as the message folds, so the card no longer shrinks 53 px mid-fold. `test_a_refused_reply_folds_away_while_its_card_holds_still` covers this. **The leaf's menu, Page Map, the shortcuts dialog, and a card opened from its pin fade in and out over 120 ms.** The fade is opacity only, and each is pressable from its first frame. - The menu keeps its last rows, inert, while it fades out. - The dialogs use `@starting-style` and an allow-discrete `display`/`overlay` transition. Firefox can't transition `display`, so there they fade in but close at once. - `tests/words_watch.js` now treats a field inside a closed `<dialog>` as put away. The axe check on the small-screen map waits for the opening fade. **Each block a revision changed takes the arrival tint as it lands.** It is the same 1.2 s tint a new message gets. `selfComparison` generalised into `blocksNewSince(source)`, which this asks of the outgoing source, at the cost of one more Markdown format pass per revision. **The tabs' reveal cue uses the flash token.** It asks `flashDuration()`, now exported and documented, instead of 650 ms. Corner marks fade in the disclosure time. The `.lf-msg.flash` rule, its keyframes, and `openPageThread`'s `flash` option outlived the classic Threads panel that applied them (#3100), so they are deleted. Also corrects `notifications.js`, which said a passing notice fades. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Walking On me with `m` from a thread open in the floating panel to an item on the page could leave the panel's view standing over that item. The landing already scrolls a destination above an open view (the root's `scroll-padding-bottom`), but a long thread's view, or any view at phone width, leaves too little room, and an item near the page's foot can't scroll that high. Leaf used to clear such a surface on every trip (`clearFor` in `auxiliary-surfaces.js`); removing the classic chrome in #3100 dropped that step. ### The rule Travel shows where it lands. `arrive` (`anchor-travel.js`), the one arrival every route uses (`m`, `t`, Go-to, Show, links, `navigateToDatum`), now asks the panel before moving focus whether its open view would cover any of the destination once landed, and the view closes if so. A Tab onto a page stop runs the same check. - `landedBox` (`landing-scroll.js`) reads where the landing will leave the destination from the same plan the scroll carries out (`readingBandMoves`: each region's move, from the one holding the destination outward, ends of scroll ranges included). An arrival that scrolls nothing is measured where it stands. - `coveredShare` (`geometry.js`) is the occluder measure, now able to take that landed box; `hides` keeps its more-than-half threshold for the composer's seat check. What holds the surface (the chrome's dialog, which Firefox's Shift+Tab can stop on) is not covered by it. - The panel's `clearFor` closes the view. ### What stays open, by the maintainer's picks on the review page - A view the landing clears stays: the walk prioritizes the next item rather than closing whatever it moves off, so a link followed from a thread's view still leaves the thread for Back. While the user stands on such a stop, the words before the field's Reply (`turnLead`) name the walk's position alone, without the left thread's turn. - On me stays where it lists the destination (`onMe.lists`, from the queue walk), since its card shows that item, ringed where `m` reached it. `t` to a thread On me doesn't list gets no such exemption. ### Testing Three new browser tests in `tests/browser/navigation/test_on_panel.py`: `m` from a panel thread keeps it over a stop it leaves in sight and closes it at the page's foot; the same at the end of a bounded block, where the page's scroll follows the block's (the review's case); `m` keeps On me while `t` to a foot thread closes it. Each fails without its change. The panel, walk, travel, link, Tab and On me browser tests pass locally, as do all runtime tests; `test_an_arrival_region_fits_above_the_floating_panel`, `test_reply_editing_and_saved_words_have_separate_resolution_lifetimes[panel-user]` and `test_one_field_starts_a_thread_takes_its_reply_and_settles_it` fail the same way on `main`, as do `test_a_thread_walk_starts_one_page_trip_and_reveals_its_nested_passage`, `test_a_turn_arriving_leaves_a_user_who_scrolled_away_from_their_box_reading[bounded-short]` and `test_monitoring_evidence_moves_without_stealing_position_or_the_summary` on this loaded machine. Probed in Chromium and Firefox at 1280×900 and 390×844, including an anchored thread opened through the card's Open in panel. > _This was written by Claude Code on behalf of max-sixty_
…5422) Two browser tests checked things that could not fail. This makes them check what they claim, and no behavior changes. - **`test_a_key_on_screen_is_a_key_that_works`** (`tests/browser/navigation/test_key_surfaces.py`) asserted that the command reference names neither `version.later` nor `version.earlier`. Neither id exists any more: #3100 removed them with the classic chrome. The Versions walk the comment describes is `panel.floating.versions.pick` (`browser/runtime/floating-panel.js`), which is declared only while the Versions list stands in the menu, so the test now asserts that the reference doesn't name it. - **The two refused-draft-save tests** (`tests/browser/drafts/test_draft_editing.py`) say the draft "reopens with Retry", but `draft_control(page, "retry", …)` selects the save button, which every open editor shows. Only the button's name says Retry, and only after a refused save (`draft.save`'s `title` in `lf-draft.js`). Both tests now assert that the accessible name contains Retry. All three tests pass locally on the changed nodes. The Retry assertion tells the two states apart, since before a refusal the same button is named Save. Co-authored-by: leaf-agent <[email protected]>
…ling and bench-latency (#5576) Max asked for one benchmark that takes variables, rather than two that each serve pages from this tree and a base, drive inputs, time them and profile them. This replaces `leaf-dev scaling` and `leaf-dev bench-latency` with one `leaf-dev bench`, and deletes both, with every caller cut over and no alias. ``` uv run leaf-dev bench [PAGE ...] [--sizes 32,64,128,256] [--input NAME ...] [--read cpu|paint|server ...] [--rounds N] [--base [REF]] [--browser firefox] [--profile] ``` - **The page** is a generated collection (`COLLECTIONS`, measured at each size beside the BASE page) or any example or the corpus by name. - **The inputs** are one table, `INPUTS`: scaling's click, key, leave, Tab, wheel and revision; bench-latency's comment, card move, agent reply, agent status and stamped revision (`stamp`); and a triple-click selection of the title (`select`), which replaces #5472. A page without what an input needs (an option, a card) reads none of it and the report names it missing. - **The arms** come from `arms.choose_arms`, as before. - **What to read**: `cpu` (scaling's CPU pass), `paint` (bench-latency's time to the painted result, the POST's answer, the server's reading on screen, and the requests and bytes caused), `server` (the in-process server paths, `server_paths.py`, the renamed `server_scaling.py`), for this checkout's generated pages only, as before. Default `cpu` and `paint`, and in Firefox `cpu`. Scaling is the same benchmark over several sizes: with three sizes or more the table gives each reading's exponent, marked `!` past 1.5. Every reading of every page goes in one table, a row per reading and a column per size and arm, and `results.json` keeps each round's readings and the table's lowest (`lowest`), which the daily chart reads. ## Each measurement's method Kept as it was: - CPU: thread ticks (or Firefox's OS count), the load until the main thread goes quiet, idle subtraction, the mean over each input's count, per-window `ready` for inputs that need setup, interleaved rounds and the lowest reading. - Paint: painted.js goals from the input event or the agent's first write, the POST's answer by attempt, request attribution against what the page started while left alone (starters pooled across rounds), long-frame owners, and `--profile`'s trace and attribution. - Server: unchanged code. What changed, each a call Max may reverse: - **Each pass reads a fresh page.** The CPU pass and the paint pass of each round each build and serve the page anew, so no input meets what another pass or round left on it. Scaling served one page through every round, and bench-latency's runs piled up each other's comments, questions and moves. Each pass pays a page build. - **The paint pass starts with the panel folded**, as a page loads, and the reply opens the views it needs. bench-latency opened the Threads view first, a habit from the classic chrome's always-visible thread list (#3100). An open Threads view slows the server's reading on screen: a click's `shown` on the asks page at 128 sections read 59–61 ms with it open and 43–47 ms folded, three fresh pages each, interleaved. - **The paint pass times each input as many times as the CPU pass reads it** (a click four times, a revision twice, the conversation's inputs once) and keeps the median, as scaling read `shown` over four clicks. Every round's samples are in `results.json`. - **One statistic across rounds: the lowest**, for every reading. bench-latency printed median [min-max] over runs. - **Both passes open `browser.tab`'s window**, which reduces motion, as scaling's did; bench-latency's context used no preference, which may be why a card move painted sooner here (not checked). - **`revision` saves only**, inserting a paragraph under the title, as an agent's ordinary save does (scaling's input inserted and then removed one). bench-latency's revision, a save followed at once by `leaf page stamp`, is the `stamp` input, and the note's stamp-route analysis now runs as `leaf-dev bench corpus --read paint --input stamp --base`. - **Targets are found on any page.** The comment selects the first paragraph after the title (the triage board's lede, as before; on the corpus its own lede rather than the triage lede deep inside it). A move takes the first card with a column left of it (`card-tz` on the triage board, bench-latency's first move). The agent's thread is a general one, made at the first reply and taken in by the page before the reply's window opens; bench-latency anchored one on the triage lede before the page loaded. An anchored agent thread made every click on the asks page cost about 70 ms more CPU (13 → 82 ms at 8 sections), so it would have changed every other input's reading. - **Input order**: the page's own inputs, then the two revisions, then the selection, then those that add threads and to-dos. A selection standing on the title holds a revision back (after a triple click on the title, a save left the page on its old revision for 5 s), so the selection follows the revisions. - **`--read paint` also counts requests and bytes**, from the same window, so they have no read of their own. - **`--browser firefox` reads only `cpu`**: the paint pass needs Chrome's DevTools protocol for its requests, and bench-latency ran only in Chromium. - **The daily run takes every input with the default reads** (`leaf-dev bench --sizes 64,128,256 --rounds 2`). Its chart is now "Bench at 64 sections" and holds the load's and each input's main-thread CPU and each gesture's `shown` (`asks: click cpu`, `asks: click shown`, ...); request counts and single paints stay in the summary, the log and the artifact. `gh-pages` holds no reading yet, so the rename loses nothing. - **The reply reads its delivery in parts**: on a page seeded with many events, the first `leaf wait` delivers them all with the question, in parts (14 on the threads page at 64 sections). The reply follows each part's `leaf delivery read <id> --part N`, as the delivery tells an agent to, and joins their text, leaving the seeded threads queued as the page was generated. - **`compare_profiles` is gone**: its side-by-side window and render times repeated what the table and each arm's profile already print. - **Whether an input posts is read from its goals**: an input waits for its POST's answer in the CPU pass where its goals include the server's reading of its event. Whether it paints stays declared (`Input.paints`), since a run refuses `--read paint` with no painting input before it builds a page, and the paint pass skips an input without running its `ready`, whose setup moves the page. ## Equivalence Old and new on the same page, inputs and sizes, back to back on this Mac. The old commands ran from untracked copies of main's `scaling.py` and `bench_latency.py`. **CPU, asks page, lowest of two rounds** (`leaf-dev scaling asks prose --sizes 64,128 --rounds 2` at load 6 against `leaf-dev bench asks prose --sizes 64,128 --rounds 2 --input click --input key --input leave --input tab --input scroll --input revision` at load 4), ms at 8 / 64 / 128 sections: | Reading | scaling | bench | | -------------- | -------------------- | -------------------- | | load | 180 / 388 / 627 | 181 / 404 / 640 | | click | 11.8 / 21.2 / 28.0 | 19.8 / 22.7 / 28.5 | | key | 4.1 / 4.6 / 5.3 | 5.0 / 5.7 / 4.9 | | leave | 11.2 / 28.8 / 48.0 | 16.2 / 30.9 / 40.8 | | Tab | 9.0 / 11.5 / 11.0 | 12.4 / 9.4 / 10.9 | | wheel | 1.2 / 2.5 / 3.9 | 1.5 / 2.4 / 3.3 | | revision | 26.2 / 131.9 / 241.6 | 29.1 / 126.9 / 242.3 | | event | 4.9 / 7.8 / 10.5 | 6.6 / 8.5 / 10.5 | | click `shown` | 28.4 / 28.7 / 29.3 | 29.8 / 30.9 / 32.7 | The prose page reads alike (load 146 / 159 / 172 against 147 / 158 / 168, revision 12.6 / 23.3 / 36.6 against 15.5 / 27.9 / 39.6). A click at 8 sections spreads from 11 to 21 ms between passes on one served page (`cpu_pass` three times on each of two pages read 14.0, 11.4, 16.9 and 18.7, 21.4, 11.8), so its 19.8 is one pass's draw. Two readings sit consistently above scaling's, here and in an independent A/B: `shown` by about 2 ms, and `leave` at 64 sections by about 3 ms. For `shown`, the likely cause is a colder page: scaling clicked for `shown` after its whole CPU pass, and here the first of four clicks on a fresh page reads 40–46 ms and the rest 29–33. The paint tab's instrumentation isn't it: with and without Chrome's network domain and the long-frame observer, three fresh pages each, the medians were 31.7–32.2 and 30.6–32.7 ms. A quick look found no cause for `leave`. **Paint, triage board, three rounds** (`leaf-dev bench-latency --page triage-board --runs 3` against `leaf-dev bench triage-board --read paint --rounds 3 --input comment --input move --input reply --input status --input stamp`, both at load 4), median [min–max] ms over the runs: | Input | bench-latency painted | bench painted | bench-latency Sent | bench `shown` | requests, KB | | ----------------- | --------------------- | ------------- | ------------------ | ------------- | -------------------- | | comment | 51 [49–89] | 73 [71–76] | 66 [66–89] | 93 [92–96] | 1, 5.5 / 1, 5.4 | | move | 11 [10–21] | 11 [10–14] | 32 [26–45] | 33 [32–35] | 1, 6.2 / 1, 6.1 | | reply | 94 [55–176] | 68 [62–72] | | | 2, 4.6 / 2, 4.5 | | status | 79 [56–91] | 110 [91–115] | | | 1, 1.5 / 1, 1.7 | | revision / stamp | 234 [228–277] | 251 [248–264] | | | 2, 160 / 2, 147 | The comment and status differ because every bench round reads a fresh page, so each is the page's first: bench-latency's first run read the comment at 89 ms, the status at 91 and the move at 21, and its later runs, on a page that already held them, 49–51, 56–79 and 10–11. The panel's state doesn't explain the comment: with the Threads view open and folded, three fresh pages each, it painted in 73 and 72 ms; the status read 93 and 114. The stamped revision's bytes differ because it now inserts a paragraph where bench-latency's appended words to the lede. **Server paths** (`leaf-dev scaling --server events options --sizes 128,256` against `leaf-dev bench events options --read server --sizes 128,256`): the same code, reading within 0.5 ms on every path (append on events 1.7 / 6.9 / 12.1 against 1.9 / 7.1 / 12.1). **Selection** (`leaf-dev bench asks document --sizes 512 --input select --read cpu`): 24.9 → 159.2 ms on asks and 31.9 → 45.0 on document, from 8 to 512 sections; #5472 read 26 → 152 and 32 → 40 on main. ## Callers `.github/workflows/ci.yaml` (the daily job is now `bench`, charting the load's and each input's CPU and each gesture's `shown` at 64 sections: the readings it charted under new names, less the server's `event` time and size, plus the new inputs' CPU and the comment's `shown`), root `AGENTS.md` ("Responsiveness" names the command), `tests/AGENTS.md` (the rule #5522 wrote names it), `dev/AGENTS.md`, `browser/AGENTS.md`, `notes/user-feedback-responsiveness.md`, `notes/shift-watch-cost.md`, and comments in `floating.js`, `toc.css`, `test_interact_layer.py`, `painted.js/py`, `main_thread.py`, `profiles.py` and `browser.py`. ## Size and checks `bench.py` is 2,175 lines where `scaling.py` and `bench_latency.py` were 2,241 together; the whole change is +2,257 / −2,315. The two commands shared little code after #5546 (arms, painted.js, profiles), so the saving is one CLI, one orchestration and one report in place of two; what this buys besides is every input on every page, every read on every input, and one place to add the next. The daily job's two steps ran locally at one round and exited 0: `uv run leaf-dev bench --sizes 64,128,256 --rounds 1` in 723 s at load 6–7 over asks, document, prose and threads, and `uv run leaf-dev bench --read server` in 163 s; the chart step's `jq` over their `results.json` gave 56 series (`asks: load cpu` 468.91 ms, ...). The rows page #5567 added, now in `COLLECTIONS` and `AXES`, ran alone in 168 s at load 4–5 (`leaf-dev bench rows --sizes 64,128,256 --rounds 1`, exit 0) and adds 14 series, so the chart holds 70. The job runs two rounds of all five pages, so expect about 30 minutes on this Mac under its 120-minute guard. Also run on this Mac: the equivalence runs above; `--profile` (asks at 16 and 32, the CPU growth listing and the paint attribution); `--base` (triage-board's move and status on the merge base and the head); `--browser firefox`, whose default read is `cpu`; `--read paint --input move --input click` on asks, which names move missing; the reply on threads and messages at 64; the refusals of `--read paint` with no painting input, of `--read server` with `--base` or an authored page, of Firefox with `--read paint` or `--profile`, and of an unknown PAGE; `uv run pre-commit run` on every changed file, including `ty`, `vulture` and `actionlint`. Not verified: the corpus page; WebKit, which the command refuses as before. Supersedes #5472. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
…led card (#5749) `test_firefox_paints_the_author_and_words_in_the_same_send_flash` failed intermittently: 3 of 10 local runs on `main`, plus the scheduled run that #5710 cites. Its frame filter let through screencast frames that say nothing about the sent message's grounds. On a loaded runner, its fade-density check also failed on real fades. The assertion that the author's row and the words fade together is unchanged and still catches a head that lags its words. Test-only; no product behavior changes. **Frames that were getting through**, from frames captured in failing local runs: - **Stale page content over the card.** Headless Firefox sometimes composites a band of earlier page content (here, the diff widget) over the card. The existing check compares the card's right edge on both rows, but the band can cover the author's row and stop short of that edge, leaving the author's row reading the page's white `(255, 255, 255)`. This is the frame in the failing [scheduled run](https://github.com/max-sixty/leaf/actions/runs/42365682113): head `(255, 255, 255)`, words `(253, 249, 222)`, both edges `(250, 249, 245)`. - **The card still growing.** In the first frame of the arrival, the reply field still covers the words. The words' sample, 3px above the message's foot, read a blend of field and highlight, e.g. head `(255, 249, 199)` against words `(253, 251, 230)`. **The filter now:** - Samples the words at the middle of their row, beside the short sentence. - Reads a frame only when three things hold: the card's edge matches on both rows; the author's row shows a colour the message's ground can take (its yellow, the card's paper, or a mix), which the page's white fails; and the reply field's top ring reads as it does in most of those frames, so the card has grown into place. - Takes that ring majority only over frames that already passed the first two checks, because under load the band frames can outnumber the rest. **Fade density.** The test required three distinct fade colours at least 12 apart. On this PR's loaded CI runner it captured only two frames inside the fade. Locally, under five busy loops on four cores, it often captured two colours, or several within 8 of each other. The check exists to reject a discrete jump (no intermediate colour) and the constant 0.5 pending blend (one colour plus JPEG jitter). It now requires intermediate colours more than 6 apart, which still rules out both. **Verification** (local Linux, `--run-nightly -n0`): - `main`: 3 of 10 runs failed. - This head: 10 of 10 pass idle and 12 of 12 under five busy loops. Before the density change, the filter alone passed 50 of 50 idle and 8 of 8 under two busy loops. - Injecting a head that stays 60% highlighted (`.lf-margin-preview .lf-msg-head { background: color-mix(in srgb, #fff8c5 60%, var(--paper)) !important }`) still fails the head-against-words assertion. The test came in with #1933, and its edge filter with #3100. The next scheduled `ci` run will settle the macOS lane. Closes #5710 — automated triage --------- Co-authored-by: leaf-agent <[email protected]>
…ead test (#6648) `test_an_old_document_state_request_cannot_update_the_new_revision` failed on macOS because the page installed revision 2 by itself while the test had the leaf's menu open, before it pressed Open latest. The test relied on its page-comment draft to keep revision 1 shown. Opening the menu moves focus to the menu's search, so the draft stops holding ([`midComposition`](https://github.com/max-sixty/leaf/blob/4d00bbe16c7b1bc4ef54016ddcc8b60ed4b00101/browser/runtime/composing/engagement.js#L21-L42) holds only for a focused box). The next heartbeat (every 2 s, [state-feed.js](https://github.com/max-sixty/leaf/blob/4d00bbe16c7b1bc4ef54016ddcc8b60ed4b00101/browser/runtime/state-feed.js#L204-L215)) then installs revision 2 by a fresh document, which takes the panel away. `panel_settled`'s predicate then read the missing panel host and threw. The failing run's page picture shows "Live second", with the draft carried over and the menu gone. The test now presses Open latest through `open_latest`, which runs the same `versionPicker.latest()` as the menu's row without moving the caret. It also drops `expect_panel_offers(page, "latest")`, which opened the menu the same way. What the test protects is unchanged: a state read held from the old realm doesn't update the new revision. **Evidence** - **Before:** a scratch test that held the menu open for 4.5 s after the same setup read "Live second" every time. That is a deterministic reproduction of the macOS failure. - **After:** the edited test passes locally. With a temporary 4.5 s pause before Open latest, it still reads "Live first" at the end of the pause and passes. - **Still to come:** the dispatch in #6598 didn't reproduce the failure in 18 copies on CI's Mac. So, as `running-tend` allows, the failing scheduled run counts as the before, and the next scheduled `test-macos` run after merge as the after. **Contract correction.** `version.js` still said an open menu defers an install. That check (`versionMenuIsOpen`) went with the classic chrome in #3100, and nothing defers an install while the floating panel's menu is open. The header and `prepareActivation`'s comment now describe the current code. A user with the leaf's menu open when a revision with changed executable inputs lands still sees the page reload and the menu close; only an open thread is carried across. Making an open menu defer installs again would add a hold to the core runtime for a rare path. That is a product call this PR leaves open. Closes #6598 — automated triage Co-authored-by: leaf-agent <[email protected]>
Removes Leaf's classic chrome — the banner, the bottom shortcut bar and status, the All pages and On drawers, and the Threads side panel — so the floating panel is Leaf's only chrome. The user asked for this: "we'd like to remove the banner. it's useful as reference code, but we don't need to support users switching to it … move all our core to the floating panel". Git history keeps the old code.
Size: 436 files, +15.9k / −54.6k. Runtime and styles −14.3k/+2.8k; tests −30.0k/+8.0k; generated kernel and vendor −8.1k/+2.4k.
What changes
chrome-choice.js,?lf-chrome, a sample'schromeattribute and the classic CSS reservations go; the reader's one stored preference is the panel's fold.m) opens in the panel's thread view; All pages is a panel view;g T/M/L/V, page-mode comments on selected words, sample hosts and restore no longer reach the old surfaces.page-status.js(status, tab icon, approval),page-controls.js(the menu's rows, whose press runs the command),page-about.js,keyboard/status-context.js(walk position, Go-to word),page-layout.js.twalks threads from the thread model;?is a page command. Theme tokens are--lf-head-room,--lf-foot-room,--lf-z-panel. The render gate waits for the panel (no-runtime) and opens threads holding markup so reply widgets are checked.raiseError(errors.js) always has the panel to present it, so its notice fallback goes, and tests that expected a refusal's notice now read the panel's error: in the field, covering words it returned, or in Errors in the leaf's menu.page-status.jsholds the error for a status that reaches nothing (offline, key refused, a reading that couldn't apply), whichmainheld inbanner.js, and a refused approval raises its reason as an error.leaf-devtools (stills, bench, demo, journeys, verify-site) drive the panel; the suite is ported (tests whose subject was an old surface are deleted, each commit naming what lost a test); the suite refuses an async predicate towait_for_function, which Playwright reads as a truthy promise and never waits on (the waits that did are fixed); shipped references, glossary, site docs, examples' prose, CLI help and notes describe the panel.Review notes