Skip to content

Refuse an agent's reply into an untitled thread unless it names the thread - #7225

Merged
max-sixty merged 2 commits into
mainfrom
titles-for-every-thread
Nov 26, 2026
Merged

max-sixty merged 2 commits into
mainfrom
titles-for-every-thread

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

leaf thread reply now refuses a reply into a thread that has no title unless the reply carries --title (untitled-thread), and leaf thread create requires --title. The maintainer asked for a title on every thread, shown or not, after a preview page's Threads list showed six of ten threads by their opening words.

Why the reply and not the delivery: the page was a leaf-dev preview page, which a checkout serves unclaimed, so no harness titled the threads as the user posted (thread_titles). Each of the six deliveries asked for --title in its handling, but the agent read them through jq field lists that dropped handling. Across 4 days of local transcripts, 18 of 119 delivery reads dropped handling the same way. On claimed pages the server's title came first for 380 of 381 threads, so the refusal rarely fires there.

To weigh: only the agent's own command owes a title (title_owed). Leaf's own writes (a line fork's working line, a Codex turn's final message, a failure receipt) don't. A refusal hidden behind | jq -c .id prints null and posts nothing; advice beside the result would have been hidden the same way and left all six threads untitled.

Requested by the maintainer on a Leaf page; not yet read by him. Tests: the reply and create tests now pass --title where the thread is untitled; a new test covers the refusal; the model and process files touching replies pass locally (1792).

This was written by Claude Code on behalf of max-sixty

…hread

The maintainer saw six of ten threads in a preview page's Threads list listed by
the start of the user's first message, and asked for a title on every thread,
shown or not.

The page was a `leaf-dev preview` page, which a checkout serves unclaimed, so no
harness was asked for a title as the user posted (`thread_titles`). The agent's
`--title` was the only source. Each of the six deliveries asked for one in its
`handling`, but the agent read those deliveries through `jq` field lists that
dropped `handling`, and posted every reply without `--title`. Across 4 days of
local transcripts, 18 of 119 delivery reads dropped `handling` the same way. On
claimed pages the server's title came first for 380 of 381 threads.

- `leaf thread reply` refuses a reply into a thread with no title unless it
  carries `--title` (`untitled-thread`). Only the agent's command owes one; Leaf's
  own writes (a line fork's working line, a Codex turn's final message, a failure
  receipt) don't.
- `leaf thread create` requires `--title`.
- threads.md, how-it-works and the `thread_titles` header say so.

Tests: every test whose agent reply lands first in a user's untitled thread, and
every `thread create`, now passes `--title`; the dev states, bench and placement
commands do too. `test_the_agents_reply_names_a_thread_nobody_titled` covers the
refusal, and the author-API test now reads the title from the thread rather than
the reply that proposed it.
@max-sixty
max-sixty merged commit d982e85 into main Nov 26, 2026
6 checks passed
@max-sixty
max-sixty deleted the titles-for-every-thread branch November 26, 2026 04:59
max-sixty added a commit that referenced this pull request Nov 26, 2026
#7241)

Titles the untitled threads in the seeded logs of four catalog examples
(ship-review, log-retention, review-a-plan, review-parts), so their
Threads lists show titles as a live page's do: a page a session holds
titles a user-opened thread about a second after it opens, and `leaf
thread create` now requires `--title` (#7225). Each user-opened thread
gets a `thread_title` a second after its opening comment; the one
agent-opened thread gets its `title`.

To weigh: the developer galleries keep their untitled threads, since
they show the untitled state a page no session holds still reaches. The
stills states and the site test that found the reconnect thread's row by
its opening words now find it by key, and the stills replies into
now-titled threads drop the `--title` they no longer owe.

Requested by the maintainer in chat. Tests: the On Me focus test, the
site's shipped-log test and `dev/tests/model/test_stills.py` pass; the
changed stills states run under `leaf-dev probe --state` and show the
new row titles.

> _This was written by Claude Code on behalf of max-sixty_
max-sixty pushed a commit that referenced this pull request Nov 26, 2026
#7281)

The four `map-*-map-thread` cases of
`test_the_page_holds_still_under_the_user` failed in the [scheduled
run](https://github.com/max-sixty/leaf/actions/runs/45805148564), on
Linux and on macOS. Each waited 120 s for a Page Map row containing "One
more question?", the new thread's opening words, and never found one.
#7225 made `leaf thread create` require `--title` and gave this test's
thread the title "More questions", which is what the Page Map row now
shows. The test now finds the row by that title. Its subject hasn't
changed: the map's rows and the user's place hold still while a thread
joins above them.

Bisecting the `map-row-map-thread-chromium` case over
`118f31f6d..7836b38` lands on #7225 (`d982e8513`). The chromium row
case still fails on `main` at `ab811b350`, and all four cases pass on
this branch (`pytest --run-nightly -k map-thread`, 4 passed). Pushes and
PRs don't run `journeys/`, so the scheduled run is where this test
fails.

Refs #7279 — automated triage

Co-authored-by: leaf-agent <[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