Repository navigation
Tell agents to name untitled conversations in delivery handling - #998
Conversation
Agents answering reader threads never ran `leaf conversation title`, so the Threads panel labelled each thread with its opening words. The naming rule reached installed agents only through conversation-threads.md, which a session answering deliveries does not reread, while the delivery's own handling clauses -- what the agent actually follows per event -- said nothing about naming. Since #939, only the session that built titles ever ran the command. Comment and reply events now carry a handling clause: when the event's conversation has a null `title` in the batch, name it. The hosted agent's developer instructions carried their own copy of the rule; that copy is removed, since the clause now reaches every host. Tests: four delivery snapshots gain the clause. The Codex delivery test asserted a count of two distinct clauses; it now asserts that the batch carries exactly the selected events' clauses, which is what it was holding. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
left a comment
There was a problem hiding this comment.
Removing the naming paragraph from CODEX_INSTRUCTIONS in worker/server.py narrows the rule for the one host that had no other copy of it. That paragraph applied to every turn; the clause replacing it is selected per event, on non-token comment and reply. So the hosted agent is no longer told to name a conversation it opens itself — leaf comment --markup on a page section, or a thread carrying a widget it sent.
handling does not reach that case. If the reader replies in the agent's thread, the new clause arrives. If they answer by picking inside the widget instead, the event is an action, whose clauses say to reply in the thread and nothing about naming. If they never answer, no clause is selected at all — delivery.py builds a batch only from events with author: "user". And the hosted session has no second route: its developer instructions are self-contained and tell it not to inspect CLI help, which is where conversation title's own docstring carries "Choose a few descriptive words when first handling a conversation."
Either keep a sentence in CODEX_INSTRUCTIONS covering the threads the agent opens, or say that leaving those unnamed is acceptable because reader-opened threads are what the panel was showing wrong. Happy to push whichever you prefer.
Delivery handling reaches only reader comments and replies, so the hosted agent, whose instructions are self-contained, lost the rule for threads it opens itself. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
When the agent opens a thread with `leaf comment`, nothing at that point asked it to name the thread, so the Threads panel listed it by its opening words. The handling clauses from #998 reach only user-written events in a delivery, and the agent's own comment is never delivered back to it. `leaf comment` now prints the `leaf conversation title` command for the thread it opened, beside the id it already printed. Every host runs that command, including the hosted agent, so `worker/server.py`'s separate naming sentence is gone and three hosted-agent snapshots drop it. `conversation-threads.md` notes the extra line. `/developing-leaf` gains a short section: a handoff leaves pages, logs, and claims written by an earlier version out, and doesn't list reviving them as follow-up work, per `AGENTS.md`'s "Stage". Tests: `test_interact_layer`'s bare-`comment` assertion now expects the naming line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Agents answering reader threads never ran
leaf conversation title, so the Threads panel labelled each thread with its opening words. The naming rule reached installed agents only throughreferences/conversation-threads.md, which a session answering deliveries doesn't reread, while the delivery's ownhandlingclauses — what the agent follows per event — said nothing about naming, even beside"title": null. Since #939, only the session that built titles ever ran the command.Comment and reply events now carry a handling clause: when the event's conversation has a null
titlein the batch, name it. The hosted agent's developer instructions inworker/server.pyshrink to the case handling cannot reach: naming a conversation the agent opens itself.Tests: four delivery snapshots gain the clause.
test_codex_delivery_carries_only_the_selected_events_handlingasserted a count of two distinct clauses; it now asserts the batch carries exactly the selected events' clauses, which is what the count was standing in for.🤖 Generated with Claude Code