Skip to content

Keep thread actions beside the first message header - #1918

Merged
max-sixty merged 5 commits into
mainfrom
codex/fix-thread-header-spacing
Oct 6, 2026
Merged

max-sixty merged 5 commits into
mainfrom
codex/fix-thread-header-spacing

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner

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.

This was written by Codex on behalf of max-sixty

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.
leaf-agent
leaf-agent previously approved these changes Oct 6, 2026
@leaf-agent

Copy link
Copy Markdown
Collaborator

The test job is red on 0cec1b3, and two failures reproduce locally:

  • In test_an_acknowledgement_neither_waits_for_nor_holds_up_a_gesture, the first message's SVG intercepts the center of Resolve thread for the full click timeout. The floated .lf-thread-controls needs a hit-test layer above the transcript so pointer and touch users can resolve this state.
  • In test_a_website_turn_posts_its_answer_when_the_move_is_settled_first, a held-news notice shifts left by 63 px when its label becomes “Resolved · 1 new reply”. The right-aligned, content-width float makes a server update move the button under the reader. Keep the notice's position stable as its text changes.

The job also fails all four cases of test_a_thread_keeps_submit_in_its_field_and_resolve_above_its_messages because that test still requires the former separate control row. Its assertion needs to describe the new header alignment while preserving its other layout checks. I’m withdrawing the approval until the red gate and the pointer regression are addressed.

@leaf-agent
leaf-agent dismissed their stale review October 6, 2026 17:46

CI failed on the reviewed head: Resolve is blocked by transcript content, held news shifts, and the broad suite is red.

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@max-sixty
max-sixty merged commit 5e3dd51 into main Oct 6, 2026
4 checks passed
@max-sixty
max-sixty deleted the codex/fix-thread-header-spacing branch October 6, 2026 20:15
max-sixty added a commit that referenced this pull request Oct 14, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants