Skip to content

Hold a label's room and cut words past it - #2884

Merged
max-sixty merged 4 commits into
mainfrom
agent-aa330fcc31184ebe0
Oct 14, 2026
Merged

max-sixty merged 4 commits into
mainfrom
agent-aa330fcc31184ebe0

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

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

max-sixty and others added 3 commits October 14, 2026 11:56
Since #2852 a label whose words change kept the room of its widest
expected words as a least width, so words past it widened the control:
On me at 100 went from 90 to 96px and moved what stood left of it, and a
thread's held-news notice widened from "1 new reply" (58px) to "2 new
replies" (68px) under the reader, undoing #1918's hold. The user chose
to cut instead: the shift is hard to oversee, and cutting is the one rule
for every room.

The room is now the control's width. The element carrying `data-lf-room`
holds its words in one child, which `controls.css` draws as a block of
no width of its own that fills the room and ends 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 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 stops widening its room once past it and holds two
digits ("On Claude: 99") instead of one, so a count of ten or more is
not cut to "On Claude: 1…". On me at 100 is cut to "On me: 1…"; TODO.md
records finding the labels where a cut misleads, starting there.

The held-news journey test now also asserts the cut, and its existing
check that the notice's box holds across news passes again.

> _This was written by Claude Code on behalf of max-sixty_

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The banner tests that check a control stays whole read the control's
scroll width, which a cut inside its room's words child never reaches.
They now read the words too. The TODO entry names the agent's On count
and held news beside On me.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	skills/leaf/assets/styles/chrome.css
#	skills/leaf/assets/styles/components/controls.css
leaf-agent
leaf-agent previously approved these changes Oct 14, 2026
…te gives it

The compact-status journey expected "Agent working", while every other
banner test and the suite's fixtures name the agent Claude; it failed the
same way on main.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit d98a932 into main Oct 14, 2026
3 checks passed
@max-sixty
max-sixty deleted the agent-aa330fcc31184ebe0 branch October 14, 2026 19:44
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