Skip to content

Say a thread's title is on its way instead of heading it with its opening words - #3422

Merged
max-sixty merged 5 commits into
mainfrom
pending-thread-name
Oct 21, 2026
Merged

max-sixty merged 5 commits into
mainfrom
pending-thread-name

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

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

max-sixty and others added 3 commits October 20, 2026 20:07
…ning words

Before an untitled thread's title lands, the panel's thread view and Threads'
row headed it with the opening words of the user's first message, in a title's
bold face, so the question read as if it were 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
removed them.

A title is on its way while a session holds the page's claim and the agent owes
the thread 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. A page nobody has claimed, or a turn that ended, stalled or was never
picked up, sends none, so there the thread keeps its opening words. Search,
accessible names and the margin keep the opening words.

The card model's `titlePending`, which nothing read since #3100, is replaced by
`threadHeading` in thread/messages.js.

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]>
The placeholder replaced the Threads row's and the thread view head's accessible
name too, so two pending threads with the same status read the same to a screen
reader. The opening words now follow the placeholder in a visually hidden span.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 21, 2026
# Conflicts:
#	skills/leaf/kernel/kernel.json
@max-sixty
max-sixty merged commit 4517194 into main Oct 21, 2026
2 of 3 checks passed
@max-sixty
max-sixty deleted the pending-thread-name branch October 21, 2026 05:04
max-sixty added a commit that referenced this pull request Oct 21, 2026
…#3430)

#3422 drew "Generating thread name…" in Threads' row and the thread's
view while a title is on its way, but Page Map's row and the agent's On
card still named the thread with its opening words: they drew
`threadName`, the thread's name in words, where a drawn name belongs to
`threadHeading`. Both now draw `threadHeading`, so every surface that
draws a thread's name shows the placeholder in the same dim, shimmering
face, with the opening words kept for screen readers. Search, accessible
names, menus and prose such as `lf-activity`'s keep the name in words,
and the comments on both functions and `module-annotations.md` say which
is which.


`tests/browser/threads/test_panel_list.py::test_a_title_on_its_way_reads_as_one`
now checks Page Map and On Codex too; it fails on `main` at Page Map's
row.

> _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