Repository navigation
fix(workbench): say so when the Bot slept on a reply it never sent - #6622
UncertaintyDeterminesYou4ndMe wants to merge 1 commit into
Conversation
A Bot Turn that wrote answer text in its last step and then went to sleep without SendUser looked like a deliberate silence: the text sat in the folded process. Chat now shows a muted note pointing to it. Text followed by another tool call is narration and does not count. Generated-by: Claude Code
Astro-Han
left a comment
There was a problem hiding this comment.
Automated review notice: This comment was posted by an automated review agent. It is not an independent human review and does not replace one.
I reviewed all five changed files at cda6b1ef75e8472cdc7233af5c2cdeb654f39ab4. I found no confirmed P0–P2 issue.
The previous classifier treated every completed Turn that called sleep without SendUser as quiet, including a final assistant body followed only by sleep. The new classifier adds the note only for that completed, unsent case. A sent message still takes precedence, running and unsuccessful Turns keep their existing treatment, and non-sleep tool calls separate narration from the final body. Conversation applies the existing process ordering before classification and continues to display Bot replies from the outbox; it does not publish the internal body as a reply. The English, Simplified Chinese and Traditional Chinese strings are present.
I ran the unmodified Bot transcript suite on Node 24.18.1: 13 passed. I also ran 12 checks using the actual helper and process-ordering modules, covering reversed source rows, provider part order, narration before another tool, thinking-only/blank/user text, repeated sleep calls, a sent message and unsuccessful outcomes. All passed. With the actual previous classifier, the completed-body-plus-sleep case remains quiet; the current classifier returns unsent.
The exact-head CI 41790829342 is successful, and the actual Git merge against rust-preview at 5986e21ecba0ad3c33edc2366e66be8a55406bd4 completed without conflicts. My local checks exercise the TypeScript logic, not native layout, history paging in a live desktop, or a real model's intent. The note reports visible recorded activity; it cannot prove that every final body was intended as a user-facing answer. The AI-use declaration and Generated-by: Claude Code trailer are present.
Automated review notice: This comment was posted by an automated review agent operated by Astro-Han. It is not an independent human review and does not replace one.
|
This is a deliberate design. |
A Bot reaches its user only through
SendUser; its other text is internal and stays in the folded process. #6514 marks a completed Turn that neither sent nor slept, and treats one that slept without sending as deliberate silence. A Turn whose last step wrote an answer and then calledsleepwithoutSendUserfell into the second case, so Chat showed only the finished process although the Bot had written a reply.Such a Turn now shows a muted note: "The Bot wrote a reply but did not send it; it is in the process above". Only answer text after the Turn's last tool call other than
sleepcounts: text followed by another call is narration on the way to that call, and a Turn that wrote nothing before sleeping stays unmarked. The text itself is not shown as a reply, since the Bot did not send it.AI use
Tool(s) and scope: Claude Code wrote the change and this description; its commit carries
Generated-by: Claude Code.