Repository navigation
Read Working while a Claude Code turn's background subagents run - #3370
Conversation
Every Codex title path, the page server's App Server and the website host's, now asks gpt-6-luna at no reasoning effort rather than the model the user's tasks run on. A title the account cannot get fails its turn, which leaves the thread untitled and records why; a test now holds that. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The codex-app-server journey titled a thread 1.5 s after its comment on gpt-6-luna, against 2.3-2.4 s on gpt-6.1-sol. gpt-6-luna also refuses bursts sooner on a ChatGPT login. The header now says which deliveries ask the agent to name a thread whose title failed: an App Server turn's final message does not. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude Code's session record stays busy after a coordinator's turn ends while the background subagents it left run. The activity fold still never reads busy as a running turn, but after a turn the stamps closed it now reads it as work continuing in the background: the status reads working, observed as working in the background, and the starts that turn wrote are not dropped until the record leaves busy. An earlier turn's starts stay dropped. Codex and Pi publish no busy record, so their status is unchanged. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
left a comment
There was a problem hiding this comment.
A busy record cannot identify which ended turn left background work running. If turn A launches a subagent and its record stays busy, then turn B opens, starts a different update, and ends while A's subagent still runs, the record can still have a statusUpdatedAt from A. This branch nevertheless sets background_since to B's opening. _start_age then keeps B's start active past the turn-ending grace, so the panel says B's update is still being worked on until A's subagent finishes. I reproduced that fold result with busy.since five minutes before B opened. The background observation needs turn-specific evidence before it can preserve that turn's starts; otherwise it should remain a generic activity reading.
A busy record doesn't say which ended turn left the work running, so it no longer keeps that turn's starts from being dropped. It only adds the observed step, so the status reads working in the background. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…side it (#3396) A survey of `notes/` against the code and history at d91b67b. Where a note's design has landed, its contract moves beside the code if it wasn't already there, and the note or section goes; what is still unresolved stays. - **Deleted:** `floating-panel/GOAL.md` (every departure is now recorded in `floating-panel.js` and `styles/floating-panel.css`; #3392 moved the last one, the draft posture, beside `drafted`, and this adds the no-key-hints decision to the header), `browser-reactivity.md` (its design is in module headers; why paints that must land in the turn use `render` moves to `assets/AGENTS.md`, and the margin's double draw becomes a TODO implementation candidate) and `chrome-and-covers.md` (`page-layout.md` holds the workspace decision; the `layouts.css` Workspace comment now records the rejected main-region-scrolls design). - **Trimmed:** `agent-usability-evals.md` drops the findings through 2026-10-12, which have landed. `comparisons.md` drops the phone-pin finding (#2680), the 4 October follow-up proposals and two landed lessons. `user-feedback-responsiveness.md` narrows delegated work to Codex and Pi (#3370) and drops "Explicit stdin" (#3375). `threads.md` drops request buttons (#1327), placement (#2134) and notification transitions. `shared-decisions.md` points at the recorded owner contract. `browser-support.md` drops two fixed entries and owners #3100 removed. - **TODO.md** follows each: #28 points at the module header, #25 asks for the board's write rather than an owner, the annotation-placement item loses its landed phone half, and the delegated-work and reply-budget items lose what #3370 and #3372 settled. - Smaller corrections in `shift-watch-cost`, `undo-reach` (#3271), `named-widget-interfaces`, `codex-integration` (`codex_tool.py`), the long-read eval's provenance comment, and `motion.js`'s fold comment. The runtime comment edits rebuild `kernel.json` only. No behavior changes. > _This was written by Claude Code on behalf of max-sixty_ --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
When a Claude Code coordinator ends its turn while its background subagents run, the Leaf panel's status stops reading Working: the Stop hook closes the turn, and about two minutes later the coordinator's start is dropped and the page reads away. Claude Code's session record (
~/.claude/sessions/<pid>.json) knows better. It staysbusywhile those subagents run. A background shell writesshellinstead, which Leaf already reads as idle.activity.claimant_turnstill never readsbusyas a running turn. After a turn the stamps closed, abusyrecord now setsTurn.background, and the fold adds the observed stepworking/ "in the background":busy, the status reads as it does today.This adds no
WorkKind, which would have needed a protocol bump, so the browser runtime is unchanged. Codex and Pi publish no such record, so their status is unchanged.Evidence on this Mac (Claude Code 2.1.304): two coordinator sessions with background agents had records still
busy36 s and 3 min after their Stop hooks closed the turn, withstatusUpdatedAtat the turn's start. A normal turn end turned its recordidle83 ms after the Stop hook's stamp. A state read that lands in that window can therefore show "in the background" for up to one presence refresh (2 s) before the page reads listening or away.conversation-loop.mdnow says that in Claude Code, while background subagents run, the status reads working in the background rather than "turn ended".parent-keeps-leaf-responsiveon Claude Code passed 3/3 on both base and candidate with both metrics, and every run of either arm left a--todo.