Repository navigation
Open threads in the panel on a phone, and seven more thread-surface fixes from a Firefox pass - #5039
Merged
Merged
Conversation
In Firefox, Tab from a margin card's Send stopped on `dialog.lf-foreground`, the 0×0 box that holds the floating panel and the overlays, before the panel's leaf: one press that drew nothing. Firefox 157 gives an open dialog a Tab stop of its own; Chromium skips it. The layer now carries `tabindex="-1"`, so Tab goes from the page's last control straight to the leaf in both engines. A press on the panel between its controls already focused the layer in both engines, and still does. Test: Tab from a page's last control reaches the panel's leaf, in Chromium and Firefox; on main the Firefox case fails.
A message as old as the one above it drops its time, and in a margin card its first annotation then kept the gap it carries from the time as well as the head's own gap from the name, so the head read "Me · Still queued for Codex" with a hole where the time had been. An annotation now carries its gap only after another word of the head's metadata, so the first one stands one gap from the name: "Me · Still queued for Codex". An annotation cut to nothing still takes its gap with it. Test: in a card whose second message drops its time, that message's receipt stands as far from the name as the first message's time does; on main it stood 8px further.
In a seat (`x-thread-seat`), such as a command-hub goal, the box that starts a
new thread stood flush under the seat's last thread, 3px below that thread's
reply box. While the user wrote a reply there, the reply ("Drafting a reply…")
and the goal's box ("Say something here", with Send & pause) read as two fields
of one thread, and which one reached the thread wasn't clear. The box now stands
`--sp-3` below the threads, so the thread's ground closes on its own reply box
and the goal's box stands apart. A seat with no thread keeps the box flush with
the seat's own top margin, as before.
No test: the maintainer asked for the simple change on a surface only the
command hub uses.
…ntal) Send in the floating panel's thread view keeps the caret in its field for the next message. Send in a margin card or a widget's thread seat, such as a diff file's, moved focus to the whole thread and ringed it, so a second message took `c` or a click first. Now every reply box keeps the caret through its send; Escape still takes the user to the thread. A thread's first comment, and a rewrite, whose boxes go with the send, still leave focus on the thread. The maintainer chose this on 31 October as an experiment, for consistency with the panel: a second send by mistake is rare, so keeping the caret costs little, and the change can be reverted. Reverting restores the `landSent` call in the reply's send (thread/replies.js), which left focus on the thread's card or title; replies.js's header records the choice and what reverting restores. A margin card counted an empty reply box holding the caret as being written in, which holds news behind its notice. Kept after a send, that would have held the very answer the user waits for. The card now counts the box it was sent from as written in only once the user types there, or leaves it and comes back (card-anchor.js), so the answer shows as it did when Send left them on the thread. Tests: `test_a_pressed_send_leaves_the_user_where_enter_does` now expects the caret in the box on a card and gains a diff seat's reply; both cases fail on main. `test_a_sent_reply_leaves_the_reply_row_where_it_stands` and the margin journey expect the caret in the box, and the band-foot test no longer clicks a box that already holds the caret, since Playwright's click scrolls a focused box's ring room into view, which typing never does. `test_a_sent_reply_leaves_the_reply_row_where_it_stands[size1-press]` fails on main too, where its answer doesn't grow the card at 800x520.
…or the caret Four routes left focus where nothing showed it, so where the next key would act was a guess: - `g` then `Shift+T` from the page opened Threads with focus on the list's view, which wears no ring. A key opening a view now stands it on its first row, or the row of the thread the user came from, wherever the key was pressed; only a pointer leaves the view holding focus itself (floating-panel.js, `focusView` and `keyed`). - Escape from a thread's reply in the floating panel lands on the thread's view, as Escape from a card's reply lands on its thread, but the view suppressed every ring. A view focused from the keyboard now wears the ring, on the stage it fills, since a thread's view fades out its own top edge; a view a pointer opened still wears none (floating-panel.css). - On me's Show on a question asked in a thread's words opened the thread's card but left the user on the page. On me draws that message, and its drawing outranks the card's (thread/messages.js, `authoredRank`), so the arrival stood the user on On me's copy, and On me closing dropped them. Where the thread stands on the page, Show now puts On me away first, so the arrival lands in the card; a thread only the panel draws still opens over On me. - A pointer press on a card's held-news notice took focus from the reply being written and landed it on the thread. The notice now takes no focus from a pointer, so the caret stays in the reply; a key on the notice still lands on the thread, since the notice goes with what it held (thread/held-news.js). The `panel-by-keyboard` still now waits for the focused row. Tests: `test_the_keys_into_and_out_of_a_panel_thread_land_where_a_ring_shows`, `test_show_from_on_me_lands_in_the_card_it_opens` and `test_a_press_on_a_cards_news_leaves_the_caret_in_its_reply` fail on main; with the stylesheet alone put back, the first fails at the Escape ring. Two floating-panel tests that expected `g T` to focus the view now expect its first row.
After a Resolve, the floating panel's field said "Resolved the thread". When
the Resolve moved the user on to the next thread in the panel, that line stood
under a thread still open and read as that thread's, and nothing there offered
to take it back. The status now names the thread by the words it is about, as
its head quotes them (`anchorLabel` over the thread's passage), else by its
name, and ends in an Undo press that runs `z`, the page's undo command, with
its key drawn as the menu draws keys:
Resolved “One reconnect in about 40” · Undo z
Reopen says "Reopened “…” · Undo z" the same way. A Resolve from a margin card
or a diff seat shows the same line in the panel's row.
A notice may now carry one press: the page command that takes back what it
reports (notifications.js, `press`). The panel draws such a notice in the seat
the field's empty words take, over the field's start on the panel's ground
(`rowNotice`), so it takes no room and its coming and going move neither the
field nor its controls; drawn beside the field, its leaving moved the field's
Dictate 300px with no input. It stands until the user's next input, not for
the four seconds a notice of words stands, and an input on the press itself
keeps it. It is said nowhere while the caret is in the field or over a draft,
and a folded panel's peek says its words alone. notifications.js and
floating-panel.js record the choice, which replaces "a notice is text; what it
names the panel's own controls reach".
undo.js's quoting helper moves to words.js (`quotedWords`) for the notice's
fallback name, and the thread's quoted passage gets one reader
(`threadPassage`, thread/messages.js) that the thread head's `quoteReading`
uses too.
Test: `test_resolving_a_thread_from_threads_moves_on_to_the_next` now expects
the named notice with its `z` key in the panel's row, and takes the resolve
back with the notice's press rather than `z`; on main it finds no notice there.
One piece of held news read three ways: "1 new reply +1" on a desktop margin card and in a hub seat, where the "+1" was the user's own message from another tab, "2 new" on a phone's card, and "1 new thread · 1 thread reopened" in Threads' notice of joining rows, all in the danger ink an error wears. Every notice of held news now says one count of what waits, "2 new" (held-news.js, `newsCount`), in the accent the unread dot wears; its title and accessible name still say each fact, "1 new reply · 1 new message". A seat's Resolved summary counts the same way: "Resolved · 1 · 2 new". This retires what the notice did to fit a line of facts in its room: the facts dropped whole past it, the "+1" counting them, the short form a size observer switched to where even the first fact didn't fit, and the room each placement reserved for the count (`--lf-news-count-room`). Tests that read the notice's words now read the count; those that name it by role still read every fact. `test_held_news_says_one_count_of_all_it_holds` replaces the two tests of dropped facts and the notice's room, a mechanism this removes; on main its notice reads "1 new reply".
With no room for the rail beside the column, a margin card has no room beside
its passage either and stands under or over it. On a phone it stood in from
the window's edge at the passage's column, about 60px, over a strip of cut-off
page words, and once it outgrew the room below the passage it slid up over
the words it is about; a long thread's card on a 900px window covered its
passage the same way.
On such a window (content-layout.js, `railStands`), a card now stands under
the words it is about wherever the page can make it room there; keeps room
for its whole measure (`--thread-card`), standing in from the passage's column
only as far as the window makes it, so a phone's card spans the window; and
never slides up over its subject. Opening, it scrolls the page as far as
bringing that subject to the window's top (`makeRoom`, now asked for the
height the card would stand at, its transcript's overflow included), and past
that the card scrolls its own content. A subject too tall to leave the least
room a surface stands in below it, such as a whole decision on a short window,
is covered as on a wide window, and so is one in a pane, which scrolls itself.
Only the card takes this rule (`commentPlacement({makesRoom})`): the comment
box asks no scroll and its words must stay in the window, so it keeps the
boundary's slide, and Send hands its frame to the card where it stood.
comment-placement.js's header records the choice.
Test: `test_a_long_card_on_a_narrow_window_stands_under_its_words`, at 390x844
and 900x900, fails on main in both: the card's top stood above the words.
`test_a_focused_thread_covers_the_pages_choice_hints` needs its card over the
options, so it now opens on a window short enough that the decision leaves no
room under it.
# Conflicts: # dist/kernel/kernel.json # dist/kernel/leaf.js
The panel's "Resolved “…” · Undo z" ran `z`, which takes whatever is the user's newest gesture by then. When the log refused the Resolve, the notice stood (it leaves only on the user's next input) and its Undo took back the gesture before, such as a to-do's Done. The notice now names its gesture by attempt. undo.js offers the press (`offerUndo`): it takes that gesture back by `z`'s rules, showing it first where `z` would and returning the user where its landing carried them from, and stands while the page can still take the gesture back, in flight or on the undo list (`takeable`, which `retainGesture` prunes by too, now without refused entries). notifications.js retires a pressing notice as soon as its press can no longer act, so a refused Resolve, or one taken back by any route, takes its notice with it. The panel runs the notice's own press and still spells it with `z`'s key. Test: `test_a_resolve_s_notice_stands_for_that_resolve_alone` refuses a Resolve and expects the notice gone, then resolves again, lets another tab's resolve become the newest gesture, and expects the notice's press to take back the first Resolve. With the press running `z` the notice stays after the refusal, and the second press shows the other thread instead of taking anything back.
Whether a card on a narrow window stands clear of its words, never sliding up over them, was read once, as the side was chosen. Words that then grew past the window kept the card under them, off the window's foot: at 390x844, words grown to 900px left the card at y 852-1555. A card Send made from the comment box never read it, since adopting the box's frame chooses no side. `commentPlacement` now reads that clearance (`clearOf`) from the geometry each placement stands in, so words that outgrow the window are covered, as on a wide window, and an adopted card takes the rule as an opened one does. Whether the card keeps room for its whole measure (`spans`) is still chosen with the side: read per placement too, it moved a phone's card 54px across, to the words' column, the moment its words outgrew the window. Test: `test_a_long_card_on_a_narrow_window_stands_under_its_words` now grows the words past the window at 390x844 and 900x900 and expects the card in view at the same width. It fails without this change at both sizes, with the card's foot past the window's.
Send leaves the caret in a card's reply box, and the empty box counts as no writing until the user types there, so the answer they wait for shows. Typing cleared the send's hold (`writing`) but not that exemption (`#sentFrom`): the box counted as written in only while it held words, so after typing and erasing them, news moved the card under the caret still in the box. `writing()` now ends the exemption too, so a box the user has written in stays written in, empty or not, until the next send. Test: "a box written in after Send stays written in once its words are erased" (tests/runtime/card-anchor.test.mjs) sends, lets an answer through, then types and erases and expects news held. Without this change news moves the card.
The notice reads "2 new" but was named "1 new reply · 1 new message", so a voice control user saying what they see reached nothing. It now takes its name from its words, the count, and its title, which every engine reads as its description, still says each fact (held-news.js, `newsNotice`). The count's own words also stood where axe read no contrast for them: #16 showed them in place of the hidden facts the notice used to draw its count over, and axe ordered the message head the notice stands on above it. The notice now states the stacking its place in the tree already gives it (`z-index`, surfaces.css), which moves nothing on screen. Tests that named the notice by its facts now name it by its count and read the facts as its description. `test_held_news_says_one_count_of_all_it_holds` expects the name "1 new", then "2 new", with the facts as description; with the facts as its name it finds no notice. The seat case of `test_replies_held_in_a_page_seat_show_when_the_user_turns_to_them` failed at its axe check on this branch before this change and passes with it.
On a window with no room for the rail, a card under its words started at the passage and took its measure (`--thread-card`): at 900px it stood at x 265-857 under a quote that began mid-line, or 90-682 under one at a line's start, while the column ran 90-810, so cut-off page words showed beside it for its whole height. Such a card now covers the reading column (content-layout.js, `proseRect`), and any wider block it stands under or over, from the column's start, and keeps room for its measure as before (comment-placement.js, `spanned`). The placement hands that width to the card's fit (`measure`), which takes it as the card's floor and cap, so a short thread covers the column too. A phone's card still spans the window, and a beside card and the comment box are unchanged. Test: `test_a_long_card_on_a_narrow_window_stands_under_its_words` now also expects the card to cover its paragraph's width; at 900x900 it fails without this change (card right 769, paragraph right 810).
"Resolved “…” · Undo z" stood in the field's place in a chip's small type and full
ink (11.5px, ink), so it read as a different line from the field's status ("Away")
and from the "Resolved the thread" it replaced (14px italic, muted). A passing
notice now wears the field's face: the message's type in the muted ink of a notice
the field says, in Leaf's italic, with only its press, "Undo" and its key, upright
in ink. Firefox at 1728x999 reads the words italic 14px/21px in --muted and the
press upright 14px in --ink; the older version's notice keeps its chip.
A thread's held-news notice keeps the room of the count it first said (`data-room`), and its words set figures of one width so a growing count keeps to that room. The room measured its "1" in the heading face's own figures, since the notice's `font` shorthand reset `font-variant-numeric`, and the words' tabular "2" ran a fraction past it: a hub seat and a phone's seat read "2 n…". The notice now sets tabular figures itself, after its font, so the room and the words measure alike. Test: `test_held_news_says_one_count_of_all_it_holds` now checks that "2 new" stands whole in its box; it fails without this change, in Chromium too.
`test_the_keys_into_and_out_of_a_panel_thread_land_where_a_ring_shows` failed in 3 of 4 runs on an idle host and 1 of 18 under load. Escape from the reply changes the panel's layout, and the box follows it on the next rendering (box-motion.js): for that 120 ms tween the stage's own outline stands transparent and the box's moving layer draws the ring. `panel_settled` returned in the frame between, with no motion running yet, so `rings_drawn` read the stage mid-tween and found no ring. Recorded at the read: outline-color transparent, held by a running constant `outlineColor` animation, beside the moving-ring layer's animations. The product draws the ring throughout. The test now waits for the queued rendering, which starts the motion, before `panel_settled` finishes it: 6 of 6 runs pass where 3 of 4 failed.
…nded The ring a thread's view wears after Escape from its reply was drawn on the edge of the stage the view fills, which runs to the panel's own edges: it lay on the panel's border, took the panel's rounded top corners, and was cut square above "‹ Threads", so it read as the panel's border turning blue. It now stands 4px inside the stage, in the view's padding, with the radius the panel's other rings wear (`--r` at its outer edge), closed on all four sides. Firefox before/after captures of Escape from the reply in ship-review show the change.
`test_a_card_s_head_stands_whole_beside_news[phone]` expected the head of the user's message to give up its time on a phone's card, which stood in from the window's edge. Since #12 a phone's card spans the window, so the head keeps "Me" and its time whole, and the test failed on the branch before this session's commits; with the narrow window's rule turned off it passes again. The notice still stands clear of the head on both cards, which is what the test protects.
Main's #4843 changed the box a comment's surfaces stand in to the one whose flow holds the row (`flowOf`), so a card on a log row stands in the page beside the log, and replaced the boundary's `inRegion` with `scroller` and `cut`. It also let a card beside its words rise as an answer arrives. This branch's #12 commits gave a narrow window's card its own rule: it stands under its words, covers the reading column and never slides up over a short subject. Reconciled: - The narrow rule asked whether the boundary stood in a scrolling region (`boundary.inRegion`), which main no longer sets. It now asks whether the page's flow holds the words (`boundary.scroller === pageScroller`), the test the rail already uses for its rows (`railBeside`). A row in a log the page scrolls therefore takes the narrow rule, as main's commit says it opens under the row in the page, and words in a pane are covered as on a wide window, as before. A pane too small to hold a card, which yields its room to the window, now counts as a pane rather than as page flow. - Rising and never sliding up over the subject can't both hold, since the rise is the boundary lifting the card. They don't meet today, because card-anchor.js offers `rises` only beside the subject and the narrow rule applies only under it. The placement now states the precedence itself: a card under its words on a narrow window gets the room below it whether or not it rises (`fit`'s height). The header says so beside `rises`. Both headers keep one account each: comment-placement.js's boundary paragraph is main's, its narrow-window paragraph is this branch's with the flow it means named, and card-anchor.js's header carries main's rising rule with this branch's empty box after Send. card-anchor.test.mjs keeps both sides' new tests. Open: main's daily sweep `test_every_card_keeps_the_placement_rules[column-820]` fails on this merge. At 820px a card under row `log-6` covers the reading column, which is the log's whole width, so once the row scrolls out of the log's top the card covers all of the log still in view, and the sweep finds no spot where a wheel would scroll the log. With the narrow rule off the case passes. With the rule on but the card at main's width, it fails differently: a 449px card under a low row hangs 5px and 269px past the window's foot (`in-window`). The column's width makes the card short enough to fit for this sweep's answer, and a longer answer would fail the same way. The other five sweep cases pass, as do the placement tests both sides changed: test_a_long_card_on_a_narrow_window_stands_under_its_words, test_a_card_s_head_stands_whole_beside_news, test_a_focused_thread_covers_the_pages_choice_hints, test_a_turn_arriving_leaves_a_card_under_its_words_where_it_stands, test_an_answer_arriving_lifts_a_card_beside_its_words, test_a_press_on_a_cards_news_leaves_the_caret_in_its_reply, test_a_card_on_a_log_row_stands_beside_the_log_and_leaves_with_its_row and test_a_pressed_send_leaves_the_user_where_enter_does.
At 800x520 a card stands under its words (the narrow-window rule), and a card under its words grows down. With "words" typed in its reply, pressing the "1 new" notice showed the held answer and moved the reply box 42px down (`test_an_agent_reply_leaves_the_reply_being_typed_where_it_stands`). From the reply's first edit until it is sent or left empty, the transcript now keeps the height it stood at (`--lf-transcript-height`, written by card-anchor.js, read by annotation-chrome.css), so the card grows only as the reply does. News shown into the card scrolls the transcript to it, and the reply box stays where it stands. This follows the maintainer's decision for that test: a field being typed in never moves, and news moves nothing the reader reads. The same hold fixes a second move. Send keeps the caret in the reply (72ff2f2), and the empty box doesn't count as written in until the user types, so a card above its words still holds its foot when the first key goes in. That key switched it to holding its top, which gave the transcript the room down to the window's foot: at 800x520 with the narrow-window rule off, the reply moved 139px down on the first key typed after Send. Now the reply grows one line down and nothing else moves. The hold starts on the first edit, not on entering the reply. Entering is also how focus returns after a rewrite closes, and a card then may still be growing back to the height it stood at: a hold taken on entering kept `test_a_rewrite_leaves_a_card_at_the_windows_foot_as_it_stood`'s card at 138px where it had stood at 411px. Left: a card above its words that stands by its foot when typing starts still draws one frame with the reply's top 21px higher, until the next placement stands it by its top. The card's position follows the edge the last placement held, and only a placement can change that edge. Tests: `test_an_agent_reply_leaves_the_reply_being_typed_where_it_stands` passes (it failed with the reply 42px lower). A runtime test checks that the hold starts on the first edit, survives news, and goes with a send; both fail with the hold removed.
…swer `test_a_sent_reply_leaves_the_reply_row_where_it_stands[size1-press]` failed on this branch at the answer: at 800x520 the answer left the reply's foot where it stood, where the test expected the card to grow down to it. On main the card at 800x520 stands above its words, so the test took its `above` path. Since ec55a81 (a narrow window's card stands under its words) it stands under them, from 274 to the room's foot at 454, so the answer has no room to grow it, and the card scrolls its transcript to the answer instead. That is the narrow-window rule working, so the test changes: it now pins which case fills the room (800x520) and which has room (1200x900), checks in both that the answer stands in view in the transcript, and expects growth only where there is room. The fresh draft that follows grows down from its first line where the card has room, and up from its foot, the transcript giving way, where it fills it, as a reply being written does under the transcript hold (card-anchor.js). With the narrow-window rule switched off, the test failed at the fresh draft instead: the first key typed after Send moved the reply 139px, from 72ff2f2's empty box after Send counting as read until typed in. The previous commit fixes that move; one frame with the reply's top 21px higher remains there, which that commit's message describes. A first-parent `git bisect` over main..HEAD named e19ca6a, but that commit sits on an older main (2b901d4) where the card at 800x520 already stood under its words, so it fails for the same reason and the bisect's verdict is wrong.
A card under its words on a narrow window never slides up over them, so the placement gives it only the room below where it stands. A held card also keeps at least the height it last stood at (`stood`), and that floor won: a scroll that carried the words lower left the card at its old height, hanging past the window's foot. At 900x900 a long thread's card stood at 482-1059 after a wheel of 225px, and at 390x844 at 437-989. The room below now caps that floor too, so the card takes the room it has and scrolls its own content, as the narrow-window rule says (comment-placement.js). Main's placement sweep (#4843) catches the same thing once its answer is doubled: at 820px the card under `log-6` hung 5.6px past the foot and the card under `note` 248px. The sweep's own answer is short enough to fit at the column's width, so the sweep passed here without this change. Test: `test_a_long_card_on_a_narrow_window_stands_under_its_words` now wheels the page so the words move down and expects the card under them and inside the window. It fails without this change at both sizes.
The rule that stands a narrow window's margin card under its words, spanning the reading column (#12), still breaks main's placement sweep at `[column-820]`, so this batch lands without it while the rule is reconsidered. The branch `narrow-card` keeps a copy with it. This reverts ec55a81, 2776c56, 5686de8, 74c3474, 907510c and 9bf861d, and the narrow-rule reconciliation 2ed8012 made in comment-placement.js, which now matches main's. A narrow window's card again stands under or over its words in from the window's edge at the passage's column, as on main. Tests return to main's expectations for that placement: `test_a_long_card_on_a_narrow_window_stands_under_its_words` goes, and `test_a_focused_thread_covers_the_pages_choice_hints`, `test_a_card_s_head_stands_whole_beside_news[phone]` (a phone's head gives up its time beside news) and `test_a_sent_reply_leaves_the_reply_row_where_it_stands` (the answer grows a card beside its words; a card above them holds the answer behind its notice) expect what main expects, with this branch's other changes kept.
…ter Send Send keeps the caret in a card's reply (72ff2f2), and the empty box counts as no writing until the user types there, so a card above its words still held its foot, as a card being read does, when the first key went in. That key switched it to the top, which writing above the words holds, and gave a card filling the room above its words the room below its top. Its transcript took that room: at 800x520 the reply moved 139px down on the first key typed after Send (`test_a_sent_reply_leaves_the_reply_row_where_it_stands[size1-press]`). The box Send left the caret in now keeps the foot the send held until the user leaves the box, so the next draft grows up from the reply's foot, the transcript giving way, as the comment box grows over its words (card-anchor.js). `#sentFrom` marks that box "untyped", which still lets the answer show, and then "typed", which holds news as before. This replaces the transcript hold 10e3138 added for the same move (`--lf-transcript-height`), which also kept news shown into a card beside its words from growing it while the reply was written in; such a card grows to the news again, as on main. The hold's other case, held news moving the reply 42px at 800x520, arose only under the narrow window's rule the previous commit took out. Coming back into the reply after leaving it still switches a card above its words to its top, as on main. In a card filling the room above its words that moves the reply the same 139px at the click that enters it: measured here by leaving with Escape and clicking back in, the path main's Send takes before every next reply, since it leaves focus on the thread. Tests: `test_a_sent_reply_leaves_the_reply_row_where_it_stands` now expects the draft typed after Send in the card above its words (800x520) to grow up from its foot; with the switch to the top it fails, the card's foot moving from 230 to 390. A runtime test checks that typing in that box keeps the foot and that coming back into the reply takes the top; it fails with the switch.
The Resolve notice's Undo takes back that Resolve (4b894e5). Where the agent has picked the Resolve up, the press first shows it and says "Press again to undo", and the next press is `z`, the key the notice offers. That press went to the undo list's head, so where another tab's gesture had become the newest, `z` showed or took that gesture instead (found by an independent review). `undoLast` now takes the gesture the last press armed, by a showing press or a settlement's landing, while that arm stands, and the list's head otherwise. The notice test now has the agent pick the Resolve up, presses the notice, then `z`, and expects the undo to name that Resolve; without the change, `z` shows the other tab's Resolve and sends nothing.
card_by_keyboard pressed Tab and then Enter on a programmatically focused margin marker. On the thread-choice-hints fixture the Tab lands in its options first, and Enter on the marker then opens nothing, so the thread-choice-hints still failed on main in Chromium and Firefox. Markers aren't Tab stops; a reader reaches a thread from the keyboard with t, which opens the card with its thread focused on both pages the driver serves.
Each conflict keeps the branch's behavior with #4873's types and checks. Where the resolution went beyond that: - replies.js: the branch's reply send keeps the caret in the box and no longer calls `landSent`. #4873 added createReplyView's `home` argument only to feed that call, so `home` goes, with its two callers (thread-card.js, primary-reader.js) and the runtime test that passed it. - floating-panel.js: main's `keySequenceModel` takes steps rather than strings, so the notice's press spells its key through `neutralSteps`. On me's Show reads `message.thread.id`, which is non-null wherever `message` is, in place of the nullable `thread.id`. - held-news.js: `NewsNotice` carries the count (`text`) and a required `total`, which a seat's Resolved summary sums; the notice's `set` takes it without `total`, which Threads' joining notice doesn't have. The branch's new code gains types: `NoticePress` (notifications.js), `RowNotice` (floating-panel.js), `offerUndo` and `walkTo` (undo.js), `settleThread`'s `offerUndo` and `settledName` (thread/folding.js), `threadPassage` (thread/messages.js) and `newsCount` (held-news.js). The kernel is rebuilt.
main's Resolved summary says its news in Leaf's voice (#4877) and thread-batch says it as one count in the unread accent; the summary now says the count in Leaf's voice and accent.
A margin card standing above the words its thread is about now keeps its foot while the user writes in it, as it already did while they read: each new line rises over the transcript, the card climbing to the window's head and the transcript then giving way, so the passage stays in view below the card. It used to keep its top while written in, so a draft grew down over that passage. The rule that held a send's foot through the next draft in the same box existed only to keep that box from moving down when a written card held its top, so it goes; the empty box Send leaves the caret in still lets the answer show until the user types there. Tests: the growing-draft test splits by side, under its words holding the editor's top (unchanged) and over them holding the card's and reply's foot.
This was referenced Nov 4, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 4, 2026
…s a margin card (#5355) #5039 made the margin card a wide-window surface: on a window narrower than `--lf-rail-room` (958px with Leaf's theme), every route into a thread, Send from a new comment included, opens it in the floating panel. It moved the other placement tests that ran below that width to 1000px, but `test_a_quoted_passage_keeps_its_inline_attachment_before_and_after_send[pointer-900]` still sent at 900px and waited for a `.lf-margin-preview` that now stays hidden, on both Linux and macOS in the scheduled run. The pointer case now runs at 1000px, the narrowest width that opens a card. What it protects is unchanged: the composer and its sent card stand at the selected words' left edge and clear the wide `<pre>` block. The product behavior #5039 chose stays as it is. The `pointer-900` case fails on current main with the same hidden-card assertion as the report. At 1000px both parametrizations pass locally. Closes #5141 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Nov 4, 2026
…5354) #5039 made every thread open in the floating panel on a window narrower than `--lf-rail-room` (958px with Leaf's theme), Send from a new comment included. The 760px case of `test_a_new_anchored_comment_keeps_the_users_thread_view` still expected a margin card, so it failed in the scheduled run on Linux and macOS (#5139). The test lives in `tests/browser/`, which a PR's CI doesn't run unless the PR edits it, so #5039 didn't run it. The 760px case now expects what #5039 intended: the sent thread is in the panel and focused, no card opens, and the passage stays where it was. The 1000px and 1440px cases keep the card expectations unchanged. No product behavior changes. Verification: on current `main` the 760px case fails as in the report (`.lf-margin-preview` stays `hidden`), and with this change all three cases pass locally. The other consumer reported on #5139, `test_sample_host_view_changes_leave_its_scroll_and_keyboard_position`, had the same cause and was already fixed by #5200. It passes on current `main`. Closes #5139 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Nov 4, 2026
…cuses (#5353) #5039 made `g Shift+T` stand Threads on its first row rather than on the view. `test_a_newer_wheel_supersedes_a_panel_resize_landing` still pressed ArrowDown six times from there. That reached row 6 while the test watched row 5, so its first `to_be_focused` timed out on Linux and macOS in every scheduled run since 2 November (e.g. [41432142330](https://github.com/max-sixty/leaf/actions/runs/41432142330), [41622727492](https://github.com/max-sixty/leaf/actions/runs/41622727492)). The test now presses ArrowDown five times. What it protects is unchanged: a native wheel during a held panel resize keeps the reader's scroll and focus. #5337 made the same change to five other tests that #5039 shifted, but it missed this one. Only the test changes, so no product behavior moves. On current main the test fails locally at the same assertion. With this change it passes three times, including once under `--cpu-throttle 4`. Closes #5140 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Nov 4, 2026
#5039 opens page threads in the floating panel on windows narrower than the rail room (`--lf-rail-room`, 958px). `test_a_key_pressed_before_presentation_runs_once_the_page_presents` runs its touch cases at 390px, so the `t` it holds before presentation now replays into the panel's thread view instead of a margin card. The test read `[data-lf-thread="held-thread"]` and took `.first`, which on a phone resolves to the panel's head (`.lf-fp-head`), an element that never takes focus, so the scheduled runs failed on Linux and macOS (e.g. [41432142330](https://github.com/max-sixty/leaf/actions/runs/41432142330)) with `to_be_focused` reading `inactive`. The assertion now looks for the thread in the panel's thread view or in a margin card. #5337 made the same change for the 600px Threads test (`test_go_to_threads_lands_on_threads_from_a_page_thread`). No product behavior changes. The held key is still held, echoed and replayed once the page presents, which is the behavior this test protects. On current main the `[True-module]` and `[True-state]` cases failed locally with the same message. All four cases pass with this change. Closes #5137 — automated triage Co-authored-by: leaf-agent <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Nov 4, 2026
…l test (#5357) #5039 made the floating panel the only thread surface on a window too narrow for the rail (958px with Leaf's theme): every route into a thread there, `t` included, opens the panel and no margin card is drawn. `test_an_offscreen_thread_card_arrives_with_its_anchor[above-or-below-up]` still pressed `t` at 390px and waited for `.lf-margin-preview`, so it failed on Linux and macOS in [scheduled run 41432142330](https://github.com/max-sixty/leaf/actions/runs/41432142330); the aria snapshot there shows the thread open in the panel dialog, as #5039 intended. The test now runs both arrival directions (down and up) on a 1440px window, where the card is the thread's surface, so the upward arrival the phone case covered keeps its coverage. Nothing in the product changes. The phone route into the panel is covered by #5039's own tests, such as `test_walking_to_an_obligation_on_a_phone_continues_its_discussion_in_the_panel`. Verified locally: the `above-or-below-up` case fails on `main`; both new cases pass. Closes #5146 — automated triage Co-authored-by: leaf-agent <[email protected]>
This was referenced Nov 4, 2026
Merged
leaf-agent
added a commit
that referenced
this pull request
Nov 4, 2026
…og (#5360) The chrome's foreground layer (it holds the floating panel, hint layers and the chrome's own dialogs) is now a plain `div` with `tabindex="-1"`. Before, it was an open nonmodal `<dialog>`. #5336 gave that dialog `role="generic"` so Chrome would stop exposing it as an unnamed dialog around the panel, but [ARIA in HTML](https://www.w3.org/TR/html-aria/#el-dialog) permits no such role on `dialog`, as max-sixty pointed out on #5336. A `div` is generic natively, so it needs no role. Nothing still needed the element to be a dialog: - Native layers opened inside it (the command reference, page map, popovers) still stand in the top layer, because the browser puts them there no matter what holds them. - Nothing calls `show`/`showModal`/`close` on the layer. Its old modal posture (#2006) is gone. - The one `closest("dialog, [popover]")` reader (`focus.js`, `leftClosedLayer`) gets the same answer, since an open dialog there already counted as "still standing". `tabindex="-1"` stays, so Tab order and focus are unchanged. The layer has no Tab stop, so the Firefox stop removed in #5039 stays gone. A press between the panel's controls still focuses the layer instead of dropping focus to the body. Paint order doesn't change: the layer keeps its place in the chrome and its `position: absolute` box at the origin. The CSS that cancelled the browser's dialog styling (border, padding, max size, background) goes with the dialog. A stale comment in `leaf.js` about the hints' "native modal ancestor" goes too. Verification, on current main: - `test_borrowed_scroll_stops_leave_code_selection_and_marks_with_their_owners`: all three cases pass. It fails when the layer is exposed as a dialog. - `tests/browser/controls/test_focus.py` passes, including the Tab-order test in Chromium and Firefox. So does `tests/browser/widgets/test_code_and_documents.py`, which includes the zero-dialog check. - `pnpm run test:runtime` and `pnpm run check` pass. Refs #5126 and #5336. Co-authored-by: leaf-agent <[email protected]>
max-sixty
pushed a commit
that referenced
this pull request
Nov 4, 2026
…push it past the window (#5362) Since #5039, a window narrower than `--lf-rail-room` (958px with Leaf's theme) opens the thread a new comment's Send starts in the floating panel, not a margin card. `test_a_zoomed_floating_draft_and_sent_comment_fit_a_narrow_window` still waited for a card at 605px and 315px, so it failed in every run since the 11-02 nightly (#5142). Rewriting it to read the panel exposed a product defect: under a page's root `zoom: 1.25` in a 605px window, the panel was 675px wide and cut off its own Resolve and Close. **Cause.** The panel's width was `min(540px, 100vw - gutter)`. A root `zoom` scales the panel but not `100vw`, so the zoomed panel was wider than the window. The width now subtracts the gutter from `100%` of the viewport the panel is fixed to, which zoom scales with the panel. At zoom 1 the result is the same, apart from no longer counting a classic scrollbar's width. `leaf-dev stills` shows `floating-thread` and `ship-threads` unchanged at phone width, and `floating-thread` unchanged at 560x800. | Before (root zoom 1.25, 605px window) | After | | --- | --- | |  |  | **Test.** At a narrow window under root zoom, the test still holds the draft inside the window, as #2232 meant it to. After Send it now checks that the panel shows the thread and fits the window. It then widens to 1440px and checks that the card the thread moves to shows its words unclipped. The test fails on main at the panel's bounds and passes with the CSS change. It drops the `transformed-holder` case. That page transformed `div.lf-chrome`. Since #5228, Leaf's chrome root stands after `body` as a 0×0 box (`base.css`, `:root > .lf-chrome`), so the transform turned it into a zero-width containing block, and the draft never took focus. The test failed there on main, earlier than the card check, and bisecting puts the break at #5228. The case's local `zoom: 1.2` on `.lf-fab-bar` already lost to the chrome guard (computed `zoom` 1). Ordinary page markup can no longer put Leaf's surfaces under a transform, so the case protected no reachable page. `test_a_scaled_floating_draft_keeps_its_room_when_its_passage_scrolls_away` still covers a scaled draft. **Left open.** Several other chrome rules also size against `100vw`, such as `chrome.css`, `annotation-chrome.css`, `controls.css` and the `--lf-float-w` fallback. I haven't checked which of them overrun the window under a root `zoom`. Closes #5142 — automated triage Co-authored-by: leaf-agent <[email protected]>
This was referenced Nov 4, 2026
leaf-agent
added a commit
that referenced
this pull request
Nov 4, 2026
…end leaves (#5364) When an agent resolved a thread right after the user's reply in its margin card was accepted, the card stayed open with its reply editor. That is the `margin-accepted` case of `test_reply_admission_finishes_or_restores_its_native_session`, which has failed on every `ci` run on `main` since #5039. Bisecting the ten commits between the last passing run and the first failing one finds #5039. **Cause.** #5039 leaves the caret in the reply box after Send. Acceptance still ends the reply's editing session. But when the agent's Resolve redrew the thread, `holdThreadPlace` carried the focused box to the resolved thread's reply, because `mayReplyTo` admitted every thread. Focusing that box fired the row's `focusin`, which started a new session, and a session keeps a resolved thread's card in the margin (`annotation-inventory.js`). So focus was opening an editing session that the user never started. **Change.** - `mayReplyTo` (`thread/focus.js`) carries a reply box to a resolved thread only while a reply is being written there (`replyIsEditing`). The comment above `holdThreadPlace` already stated that rule. - The user's own edit in a reply box that has no session now starts one (`save` in `thread/replies.js`). #5039 says the box Send leaves "counts as written in only once the user types there or comes back to it". Coming back to the box already started a session through `focusin`, but typing did not. With only the first change, a reply typed into that box disappeared from the screen when the agent resolved the thread, and the suite's words-left-screen watcher reported it. **Tests.** - `margin-accepted` fails on `main` and passes with this change. - `test_typing_in_the_box_a_send_left_keeps_its_reply_through_settlement` is new. It types into the box Send left, then has the agent resolve the thread. It passes with both changes and fails when only the carry rule is applied. - These also pass: all of `tests/browser/drafts`, `margin/test_card_reply.py`, and `threads/test_composing.py`, `test_agent_replies.py` and `test_seated_threads.py`; `pnpm run test:runtime` (777 tests); `pnpm run check:browser`; and pre-commit. - One test in that selection fails, `test_draft_editing.py::test_a_draft_uses_shared_editing_and_saves_exact_markdown_source`. It fails the same way on `main` without this change and in main's recent `ci` runs. Closes #5147 — automated triage Co-authored-by: leaf-agent <[email protected]>
max-sixty
pushed a commit
that referenced
this pull request
Nov 5, 2026
On a phone-width window, Show on page for a thread seated in a widget now lands in that seat, as it does on a wide window. Before this change, Show on page for a thread on a line in a collapsed `lf-diff` file left focus on `body` with nothing traced. The maintainer chose this repair in #5343: one rule at every width, since the seat is where the thread stands on the page. **Cause.** #5039 sends a phone's Show on page through the page-only route (`reader: "page"` in `browser/runtime/thread/destination.js`). Because the file was not loaded yet, the page drew no view of the thread, so the route picked the margin marker at the file's disclosure as its landing. Only then did it bring the place into view, which loads the file. The loaded file draws the diff's seat for the thread, which replaces that marker, and focus fell to `body`. The route now checks again once the place is in view. If the page now draws the thread, it lands there the same way a surface already shown is reached, and the panel puts its view away. If the page still draws no view, the marker or place landing from #5039 is unchanged. **Behavior changed.** On a phone, Show on page for a thread in a widget seat lands in the seat (its reply box), not on a marker or on `body`. Show on page for a thread on a passage, which has no seat, still lands on its marker. **Verification.** - `tests/browser/test_render_anchors.py::test_a_deferred_diff_renders_only_opened_files_and_hydrates_comment_travel[keyboard-False]` failed on main at 1b3e077 (timeout waiting for focus in `.lf-diff-thread-outlet .lf-page-thread`). It passes with this change, along with the `[mouse-False]` and `[mouse-True]` cases. - The Show on page, phone and seat tests in `margin/test_opening_threads.py`, `threads/test_seated_threads.py`, `test_render_floating_panel.py` and `test_render_anchors.py` pass (62 tests), including `test_show_on_page_on_a_phone_lands_on_the_thread_s_marker`. - `pnpm run check:browser`, `pnpm run test:browser` and `pnpm run test:runtime` (812) pass. Closes #5343 Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Nov 10, 2026
Tend's PR review now checks each change against the open backlog and gets the description to close what the change settles. Where the change leaves nothing of a `backlog` issue to do, by finishing what remains, removing its premise or recording a decision against what it asks, the description says `Closes #N`. Where it does part, the description says `Part of #N` and what is left, so the review of the last part can tell that part finishes the issue. On Tend's own pull request the review edits the description. On someone else's it asks in the review, and the ask goes in an approval rather than holding one back. The rule is a new section of `running-tend`, **Issues a change finishes**, after **Review threshold**. ## Why Leaf's backlog triage of 2026-11-04 found seven merged pull requests that did an open backlog issue's work without closing it. Four said `Part of #N`: #3879, #3902, #3856 and #3868. Three named no issue: #4487, #4124 and #5039. Nothing asked those three to look, since `/developing-leaf` asks for `Closes #N` only of a session that starts from a backlog item. Tend's nightly sweep reads a seventh of the open issues each night, long after the diff has left the reader's context, and, by the triage's count, it commented on none of them in ten nights. The review is the step every change passes with its diff in hand. The replay below sorts the seven more finely than the triage did. #4011, #4036 and #4013 were settled by #3879, #4124 and #5039. #3902 did half of #4023, whose five composition defects stayed open. #3856, #3868 and #4487 each did one item of #4027, which is still open. For those four the right description is `Part of #N` with what is left. A `Closes #N` would have been wrong. ## Replay Each case gets the rule as this branch ships it, together with `running-tend`'s **Review threshold** section, which it competes with. It also gets the PR's title, author, description and diff, capped at 80k characters with vendored files left out, and every `backlog` issue open when the PR merged, as it read then. That list is rebuilt from the issues' creation and close times, label events and body edit history, plus their comments up to the merge. Each case runs once through a headless `claude -p` on `claude-opus-5-5` (the review's model), with no tools, in a scratch home. The JSON verdict is graded against an expected answer fixed before the run. | PR | What it did | Expected | Result | | --- | --- | --- | --- | | #3879 | the play-through #4011 asked for | close #4011, or part with its open decision left | pass: part, the decision and the home-page test left | | #3902 | #4023's touch-target half | part of #4023 | pass (also part of #4027) | | #3856 | #4027's Android back item | part of #4027 | pass | | #3868 | #4027's Draw mode item | part of #4027 | pass | | #4487 | #4027's lf-draft back item | part of #4027 | pass | | #4124 | recorded the call that settled #4036 | close #4036 | **miss**: read #4036 and judged the call unrelated | | #5039 | one held-news count, #4013 | close #4013 | pass (also part of #4012) | | #5331 | removed #4060's premise | close #4060 | pass | | #4643, #4718, #4847, #5020, #5252 | nothing in the backlog | nothing | 5 pass | | #5441, #5446, #5454 | rightly a part of an open issue | that part | 3 pass | | #4212 | rightly said `Closes #4037` | close #4037 | pass | That is 6 of the 7 triage cases, the premise case, and 9 of 9 controls. No run closed or named an issue it shouldn't have. #5020 is a hard negative: it changes held-news notices, which #4013 is about, and the run left #4013 alone. #4124's miss held in all three wordings tried. The triage itself only inferred that the 2026-10-25 call in `reading-place.js` covers #4036's case. The clause for a removed premise or a recorded decision goes beyond the two cases Max named. It is there because the triage closed several issues as obsolete after a landed change removed their premise. Without the clause, the #5331 run read #4060 and declined: "It only makes one sentence of the issue's background out of date". With it, the run closed #4060. Two grades were corrected after the first run, each on evidence from the record. #5252 says `Part of #5194`, but #5194 was labelled `backlog` only on 2026-11-05, after #5252 merged. #5039 left a count that gains a digit outgrowing its room, as its own `thread-card.js` comment says, and #5288 fixed that on 2026-11-04, so `Part of #4013` naming that is also right at merge time. The final wording closed #4013 anyway. ```sh uv run python .tmp/replay/replay.py --jobs 4 uv run python .tmp/replay/replay.py --only 5331,4124 --rule-file .tmp/replay/arm-finishes-only.md --runs runs-finishes-only --results results-finishes-only.json ``` The final wording's 17 runs cost $6.75. All runs together cost $19.64, across three wordings and the two-run ablation. The script, cases, prompts, answers and results are in `.tmp/replay/` of the worktree that wrote this PR, not committed. The last run used this text before one sentence was split in two. ## Decisions Max may reverse - **Where the rule lives.** It lives in `running-tend`, which only Tend loads. `/developing-leaf`'s `Closes #N` under **Take a backlog item** stays as it is. That rule claims an item early: the closing keyword is what makes `TODO.md`'s `-linked:pr` query skip it. The review then corrects a claim the change only partly fulfils to `Part of #N`. Repeating the search in the author's skill would make every Leaf session pay for a check the review already makes on every PR. - **How it acts on others' pull requests.** The review asks and doesn't edit, since the author owns the description and Leaf sessions rewrite it whole from a file. The ask doesn't withhold approval. `tend-review` runs on `opened`, `synchronize`, `ready_for_review` and `reopened`, not on `edited`, so a held approval would wait for the next push. The review approves with the ask as its body. - **Scope.** Only issues labelled `backlog`. CI failure reports and cause issues close by their own routes. ## Not verified - **Use inside a full review.** The replay gives the section on its own, with the backlog inline. It shows that the rule, once applied, picks the right issue. It doesn't show whether a whole Tend review, with the bundled review skill in context, remembers to apply it. Tend's next reviews will show that. - **What-is-left lists.** The replay leaves out the earlier PRs that name each issue, which the rule tells the review to read. So its lists repeat items that earlier parts had done. #5454's ask lists #4027 items that #3856 and #3868 had finished. - **Repeat runs.** Each case ran once. > _This was written by Claude Code on behalf of max-sixty_ Co-authored-by: Claude Opus 5.5 <[email protected]>
leaf-agent
added a commit
that referenced
this pull request
Nov 16, 2026
…rawing of the message (#6083) On Me's Show on a question asked in a thread's words has left focus on `body` since #6056, instead of in the margin card it opens. The panel's reader declines an anchored thread, so the route opens the thread's margin card and travels to it (`onPage` → `scrollToThread`). Both chose their focus target through `threadFocusTarget`, which prefers the primary reader's destination, and the panel's reader still draws the message in On Me's card. So the arrival landed on that `lf-msg` (stack: `scrollToThread`'s `arrive` → `focusForNavigation`), and On Me closing then dropped the user on the page. #5039 had worked around this by closing On Me before the arrival; #6056 removed that close on the premise that a drawing aside receives no arrival, which holds for `authoredHolder` but not for this target lookup. An arrival on the page now asks `threadFocusTarget` for the page's drawings only (`page: true`): in `onPage`'s non-travel branch and in `scrollToThread`, whose three callers are all page routes in `destination.js`. That route runs only after the primary declined the thread, drew nothing for it, or is about to put its view away (`reader: "page"`), so its view is never the right target there. The early close stays deleted. Verification: `tests/browser/controls/test_focus.py::test_show_from_on_me_lands_in_the_card_it_opens` fails on current main (timeout waiting for focus in `.lf-margin-preview`) and passes here. The 86 browser tests selected by `-k "show_from or show_on or on_me or (on_panel and show) or arrival or arrives or walk_to"` pass. One of them, `test_render_floating_panel.py::test_an_arrival_the_opening_view_will_cover_puts_it_away`, errors in the teardown shift watch the same way on main without this change. `pnpm run test:runtime` and `pnpm run check:browser` pass. Closes #6081 — automated triage Co-authored-by: leaf-agent <[email protected]>
max-sixty
added a commit
that referenced
this pull request
Nov 19, 2026
After a Send, keyboard focus now leaves the text box for the thread the message went into: a reply from a margin card, a seat or the panel's field, a page comment from the panel's field, and a rewrite's Save. From the thread, Escape closes a card, `t` and `m` walk, `r` resolves, and `c` or Enter opens the box for a follow-up. This reverts #5039's experiment of keeping the caret in a reply's box. | | Before | After | |---|---|---| | Reply from a margin card | <img src="https://gist.githubusercontent.com/max-sixty/c02edd04b4f2a8af46239ba8ca3fd98b/raw/5756099d8369a5c9be34ac5350ed21012a4d06b0/card-before.png" width="250"> | <img src="https://gist.githubusercontent.com/max-sixty/c02edd04b4f2a8af46239ba8ca3fd98b/raw/5756099d8369a5c9be34ac5350ed21012a4d06b0/card-after.png" width="250"> | | Page comment from the panel's field | <img src="https://gist.githubusercontent.com/max-sixty/c02edd04b4f2a8af46239ba8ca3fd98b/raw/5756099d8369a5c9be34ac5350ed21012a4d06b0/panel-before.png" width="380"> | <img src="https://gist.githubusercontent.com/max-sixty/c02edd04b4f2a8af46239ba8ca3fd98b/raw/5756099d8369a5c9be34ac5350ed21012a4d06b0/panel-after.png" width="380"> | **Why:** max-sixty proposed it, and his observation logs back it. Of 1,297 Sends from his keyboard (14 October to 18 November), taking the first key within 4 s: with the caret kept in the box, 58 of 309 (19%) were a walk key typed into the box as a letter, 24% for replies alone; with focus on the thread, words typed on ran as keys once in 439. **Where to look:** `landSent` (`thread/landing.js`) is now the one owner of where a send leaves the user, by the same way out as Escape. A refused send returns an untouched user to its box from one place, `sendMessage` in `drafts.js`, replacing the passage composer's and the panel's own copies. `user-intent.js` now reads containment across shadow trees, so that return also works in a seat a widget draws in its shadow root, such as `lf-diff`'s. A package reader's message parts declare their thread's reply box, so `c` from one reaches it. A Send pressed on its control now puts the user in the box only where the send left them where they were (`composing/input.js`), as in a widget's box that stays to take more. **Calls to confirm:** - A rewrite's Save also lands on the thread. Max asked only about sends, so this one is Claude's call. Over 20 rewrite Saves in the logs, the first key was Escape 5 times, ↑ 3 times, and `t` typed into the box twice. Escape and Discard still return to the reply box. - A card above its passage now shows news at once with the user on its thread. **Left as on main:** - A refused rewrite keeps its words as an "unsaved edit" on the message. - In the gallery's Feed reader, `c` on a thread with no drawn reply box starts a new comment. Reviewed by a subagent, Codex and leaf-agent; their findings are fixed here. Tests: the changed assertions are listed in the commit message. Also ran 190 affected browser and journey cases, the hold matrix in Chromium and Firefox, `pnpm run test:runtime`, and `pnpm run check`. `test_an_open_card_takes_news_without_moving_its_controls` fails the same way on main, and `test_a_reply_sent_after_progress_stands_below_it` is intermittent on main too. > _This was written by Claude Code on behalf of max-sixty_
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.
Eight fixes to Leaf's thread surfaces (the floating panel, the margin card, widget seats and the Resolved fold), each one the user picked from a Firefox pass over those surfaces at their window. The largest changes where a thread opens on a phone: in the floating panel, rather than a margin card placed for a narrow window.
What changes for the user
--lf-rail-room, 958px with Leaf's theme), every route into a thread opens it in the floating panel: its marker, a tap on its words,t, Threads, the Page Map, a link, and Send from a new comment. Margin cards stay a wide-window surface, so card placement keeps no rules for a phone. Show on page folds the panel, brings the passage into view and lands on its marker, whose focus brackets the passage and from which a tap reopens the thread. A reply being written moves between card and panel, with its words, caret and undo history, as the window crosses that width, and focus moves from the panel's view to the card's thread. The check asks the window, not the page's boxes: a page that narrows itsbodykeeps its cards on a desktop, and--colstays unregistered, so a page may state its column in any unit (a percentage leaves the room at 0px, and that page opens cards at every width).zafter a shown Resolve takes that Resolve, as the notice promised, until another key comes between; thenzstarts again from the newest gesture. The notice speaks in the field's own face.gthenShift+Tfrom the page stands Threads on its first row, and every view a key opens does the same; a pointer still leaves the view holding focus. Escape from a panel thread's reply lands on its view with a ring inside the panel's edges. On me's Show on a question asked in a thread lands in the card it opens. A pointer press on a held-news notice leaves the caret in the reply. In a seat on the page, the reply being written then holds its place, so the thread grows up from it.The
thread-choice-hintsstill now opens its card byt, the route a reader takes.Merging main
Two tests from main expected rules this branch changes: the Versions view's tests expected
g Vfrom the page to focus the view, and now expect its first version, as every view a key opens; a phone held-news test expected per-reply facts, and now reads the one count. Main's isolation of the held-news notice above the message head replaces this branch'sz-indexfor the same purpose, and main's one give-way order for every message head (#5043) parts a head that drops its time from its name once, which this branch did for margin cards alone; that test stays. Main's placement sweep ran at 820px, a window that now opens threads in the panel, so it runs at 1000px, the narrowest that opens a card.Known gaps
On a phone, a marker standing for two threads opens the first in the panel; the second is in Threads or a
taway, where the wide-window card has a 1/2 stepper.Tests
pnpm run check:browserandpnpm run test:runtime(742) pass. The PR's first CI run failed nine tests this branch had not run locally, each from its own changes; they now pass locally and in CI:_draft_in_viewreads:focus: Chromium leaves a node moved bymoveBeforeunmatched by its own:focus-within(notes/browser-support.md).--focus-ring-inset, whichtest_every_ring_stands_at_a_kind_of_boxrequires.