Repository navigation
Keep thread actions beside the first message header - #1918
Conversation
Separate conversation flow from the outer reply continuity flex layout. Float independent thread actions beside the complete first message header so panel and inline conversations do not reserve an empty controls row; preserve full body width and margin-thread placement. Replace the geometry assertion that protected a separate controls row with alignment and non-overlap checks, add a short panel regression at desktop and phone widths, and update independently reviewed delivery snapshots.
|
The
The job also fails all four cases of |
CI failed on the reviewed head: Resolve is blocked by transcript content, held news shifts, and the broad suite is red.
leaf-agent
left a comment
There was a problem hiding this comment.
The current merge tree fails test_a_walk_to_a_thread_a_diff_line_holds_lands_in_its_outlet before it exercises the walk. That test, added on main, looks for :scope > .lf-thread-controls, while this PR moves the controls under .lf-thread-content. The notice is present, but the locator matches nothing; use :scope > .lf-thread-content > .lf-thread-controls there. My focused run reported this one failure and eight passes.
Since #2852 a label whose words change kept the room of its widest expected words only as a least width, so words past it widened their control and shifted the banner beside it: On me at 100 grew from 90 to 96px, and a thread's held-news notice grew from "1 new reply" (58px) to "2 new replies" (68px) under the reader, undoing #1918's hold. Asked whether such a label should widen or be cut, the user chose to cut, since the shift is hard to oversee, and asked for a TODO to find the places where a cut is actively bad. The room is now the control's width. The element carrying `data-lf-room` holds its words in one child, which `controls.css` draws with no width of its own, filling the room and ending in an ellipsis. Every room owner gains that child: Threads, Approve, On me, the agent's On count, the blanket answers, the narrowing counts, the page search count, the diff's file count, and the held-news notice, which again holds the width of its first words and cuts longer news (its title keeps them whole). Cut words stay in the element's text, so the accessible name is whole. Approval's own truncation rule goes, since its room now cuts. The agent's On count no longer grows its room past one digit; its room is two digits (`On Claude: 99`), like On me's, so ten or more is not cut to `On Claude: 1…`. On me at 100 is cut to `On me: 1…`; the TODO entry starts there. `module-authoring.md`, `skills/leaf/assets/AGENTS.md` and the module headers describe the held room, and `controls.css` records the rejected least-width room. The held-news journey test now asserts the cut, and its existing check that the notice's box holds across news passes again. The banner tests that check Approval and the agent's count stay whole now read the words inside the room, since a cut there never reaches the control's own scroll width. The compact-status journey, which this branch's edit put in the PR's test run, expected the agent to be named "Agent" rather than the suite's "Claude" and failed the same way on main; it now expects Claude. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Short panel conversations reserved an empty row for Resolve above the first message header. Panel and inline conversations now place thread actions beside that header, while headers remain inside their messages and bodies retain their full reading width.
The header allocates distinct room for Resolve, reactions, and held news. A notice retains its position and hit area as receipts disappear or either label grows, and recalculates the available room when the page narrows. Long agent names cannot draw beneath reaction controls; summary checkpoints share the same header alignment and wrap their disclosure on narrow screens.
Browser regressions cover the reported short conversation, pending sends, real reaction/Resolve activation, held-news arrival, partially covered inline threads, and resizing with a long agent name. Existing assertions requiring a separate controls row now require the shared header. Delivery expectations are accepted only after independent inspection of fresh native captures.
Validation: focused browser checks, all eight delivery snapshot scenarios, all 225 runtime tests, and pre-commit checks. The startup comparison retains 224 code requests, adds 9,211 code bytes, and reports no initial layout shifts or browser errors; held-news measurements begin only when news arrives.