Repository navigation
Refuse an agent's reply into an untitled thread unless it names the thread - #7225
Merged
Merged
Conversation
…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.
leaf-agent
approved these changes
Nov 26, 2026
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_
This was referenced Nov 26, 2026
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]>
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.
leaf thread replynow refuses a reply into a thread that has no title unless the reply carries--title(untitled-thread), andleaf thread createrequires--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 previewpage, which a checkout serves unclaimed, so no harness titled the threads as the user posted (thread_titles). Each of the six deliveries asked for--titlein itshandling, but the agent read them throughjqfield lists that droppedhandling. Across 4 days of local transcripts, 18 of 119 delivery reads droppedhandlingthe 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 .idprintsnulland 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
--titlewhere the thread is untitled; a new test covers the refusal; the model and process files touching replies pass locally (1792).