João Salavisa
1806b87e7e
fix(lifecycle): don't split streaming messages on subagent tool calls ( #1756 )
...
* fix(lifecycle): don't split streaming messages on subagent tool calls
A subagent's internal tool calls (ParentToolCallID set) stream on the same
session concurrently with the parent agent's own text. Flushing the message
buffer on those events closed the parent's in-flight streaming message, so
each subagent tool call started a new message row — splitting one logical
message mid-sentence and breaking markdown (e.g. **bold** spans rendered as
literal asterisks) across the fragments.
Only flush on top-level tool calls; subagent-internal ones leave the parent's
streaming segment open.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
* refactor(lifecycle): drop dead flush-text branch in tool call handler
flushMessageBuffer always publishes remaining content through the streaming
path and returns "", so the event.Text / history-append branch could never
execute. Call it directly instead of through a helper carrying dead code.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
---------
Co-authored-by: Kandev Agent <agent@kandev.dev >
Co-authored-by: Claude Fable 5 <noreply@anthropic.com >
2026-07-17 14:31:28 +01:00
..
2026-07-06 22:19:52 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-25 10:04:40 +01:00
2026-06-29 19:06:33 +01:00
2026-06-29 19:06:33 +01:00
2026-06-27 15:00:38 +01:00
2026-05-16 20:07:57 +01:00
2026-07-14 22:02:43 +01:00
2026-07-02 21:57:25 +01:00
2026-07-02 21:57:25 +01:00
2026-07-02 21:57:25 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-07-09 19:59:29 +01:00
2026-05-16 20:07:57 +01:00
2026-06-01 20:35:43 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-25 10:04:40 +01:00
2026-05-16 20:07:57 +01:00
2026-05-17 20:16:15 +01:00
2026-06-27 15:00:38 +01:00
2026-05-30 14:16:48 +01:00
2026-05-24 20:12:26 +01:00
2026-07-09 19:59:29 +01:00
2026-07-09 19:59:29 +01:00
2026-07-14 13:20:52 +01:00
2026-05-16 20:07:57 +01:00
2026-07-14 13:20:52 +01:00
2026-07-14 13:20:52 +01:00
2026-07-14 13:20:52 +01:00
2026-05-16 20:07:57 +01:00
2026-07-09 09:20:07 +01:00
2026-05-16 20:07:57 +01:00
2026-06-26 10:09:23 +01:00
2026-07-02 21:57:25 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-28 16:23:17 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-06-26 10:09:23 +01:00
2026-05-16 20:07:57 +01:00
2026-07-06 22:19:52 +01:00
2026-07-06 22:19:52 +01:00
2026-05-16 20:07:57 +01:00
2026-05-28 16:23:17 +01:00
2026-07-09 09:20:07 +01:00
2026-05-25 10:04:40 +01:00
2026-06-29 19:06:33 +01:00
2026-06-29 19:06:33 +01:00
2026-07-09 09:20:07 +01:00
2026-07-08 23:37:02 +01:00
2026-07-02 21:57:25 +01:00
2026-05-29 10:23:18 +01:00
2026-07-08 23:37:02 +01:00
2026-07-08 23:37:02 +01:00
2026-07-08 23:37:02 +01:00
2026-07-08 23:37:02 +01:00
2026-05-16 20:07:57 +01:00
2026-06-05 15:53:39 +01:00
2026-06-01 10:35:33 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-07-17 14:31:28 +01:00
2026-07-17 14:31:28 +01:00
2026-06-13 23:22:54 +01:00
2026-07-14 23:14:37 +01:00
2026-05-16 20:07:57 +01:00
2026-07-14 13:20:52 +01:00
2026-05-22 16:25:00 +01:00
2026-07-02 20:27:13 +01:00
2026-07-14 13:20:52 +01:00
2026-07-10 16:09:21 +01:00
2026-07-09 19:59:29 +01:00
2026-06-01 10:35:33 +01:00
2026-06-26 10:09:23 +01:00
2026-06-01 10:35:33 +01:00
2026-05-25 19:14:36 +01:00
2026-07-02 21:57:25 +01:00
2026-07-03 15:39:06 +01:00
2026-06-12 08:56:14 +01:00
2026-06-22 14:57:37 +01:00
2026-06-16 23:30:25 +01:00
2026-05-17 20:16:15 +01:00
2026-06-01 10:35:33 +01:00
2026-06-11 22:25:58 +01:00
2026-05-16 20:07:57 +01:00
2026-05-22 01:41:56 +01:00
2026-05-22 01:41:56 +01:00
2026-07-14 13:20:52 +01:00
2026-06-02 00:14:00 +01:00
2026-07-14 13:20:52 +01:00
2026-05-16 20:07:57 +01:00
2026-06-18 13:07:40 +01:00
2026-06-18 13:07:40 +01:00
2026-07-08 23:37:02 +01:00
2026-07-08 23:37:02 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-26 13:07:46 +01:00
2026-05-25 08:14:45 +01:00
2026-05-25 08:14:45 +01:00
2026-06-08 22:44:02 +01:00
2026-06-08 22:44:02 +01:00
2026-07-13 13:56:40 +01:00
2026-05-24 20:12:26 +01:00
2026-07-08 23:37:02 +01:00
2026-05-16 20:07:57 +01:00
2026-07-14 13:20:52 +01:00
2026-07-14 13:20:52 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-05-31 11:12:36 +01:00
2026-06-03 11:06:17 +01:00
2026-05-16 20:07:57 +01:00
2026-05-16 20:07:57 +01:00
2026-06-27 15:00:38 +01:00
2026-07-14 13:20:52 +01:00
2026-07-02 21:57:25 +01:00
2026-06-11 22:25:58 +01:00
2026-06-11 22:25:58 +01:00
2026-07-14 13:20:52 +01:00
2026-07-16 22:58:46 +01:00