Repository navigation
Read Untitled on a thread view's head line where no title is on its way - #7476
Merged
Merged
Conversation
A margin card's head line, like the panel's thread view's, holds the thread's title, or "Generating thread name…" while one is on its way. A thread with neither left the line empty: the card drew nothing beside its buttons, and the panel's view hid the opening words it would otherwise repeat over the first message. The maintainer judged the empty line bad, as they had the repeated opening words (#4323), so the line now reads "Untitled", in Leaf's italic, as "Deleted" is, and in the quiet ink of words that stand in for what isn't there yet. `viewHeading` replaces `titleShown`; the card and the panel draw it, and a thread's view in the panel is no longer `quiet`, so a screen reader hears Untitled there, then the thread's group name and first message. Where the line read empty: on a page no session holds, such as a checkout preview or a page whose session has ended, every thread the user opens until the agent's first reply names it; and, rarely, on a page a session holds, an untitled thread whose turn has stopped or whose title request failed. On a page a session holds, the line reads the placeholder from the first frame after Send, measured frame by frame. Tests: the panel tests that told untitled threads apart by the view's title now read the view's first message; focused card, panel and title browser tests, the feature-gallery journey's expected heading, and `pnpm run test:runtime`.
leaf-agent
approved these changes
Nov 28, 2026
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.
A thread view's head line, on a margin card or in the floating panel, now reads "Untitled" where the thread has no title and none is on its way, instead of standing empty. That happens on a page no session holds (a checkout preview, a page whose session ended) until the agent's first reply names the thread, and rarely on a held page when the turn stops before a title lands. On a held page the line reads "Generating thread name…" from the first frame after Send, so the common path is unchanged.
The maintainer asked for this on a review page ("when do we have a blank header? it's bad when we do"), and had earlier removed the alternative, the opening words repeated over the first message (#4323). "Untitled" is in Leaf's italic voice (
leafSays, as "Deleted" is) and--lf-quietink.viewHeadingreplacestitleShown; the panel's thread view is no longerquiet, so a screen reader hears "Untitled" as the heading, with the thread's group still named by its opening words.To weigh: whether a title is coming is still inferred in the browser from the claim and the turn's state (
titlePending) rather than declared by the server, so a held page whose title request failed shows the placeholder until the agent's reply, then "Untitled" if the turn blocks.Tests: focused card, panel and title browser tests; panel tests now tell untitled threads apart by their first message;
pnpm run test:runtime.