tuna-agent 0.1.178 → 0.1.179
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -280,6 +280,15 @@ function createStreamHandler(info, subtask, callbacks) {
|
|
|
280
280
|
const content = msg.content;
|
|
281
281
|
if (content) {
|
|
282
282
|
for (const block of content) {
|
|
283
|
+
// The agent's own narration between tool calls ("checking X first…",
|
|
284
|
+
// "step 1 done, now…") — relay it so surfaces can show progressive
|
|
285
|
+
// partial answers instead of silence until the final report.
|
|
286
|
+
if (block.type === 'text') {
|
|
287
|
+
const text = String(block.text || '').trim();
|
|
288
|
+
if (text) {
|
|
289
|
+
callbacks?.onSubtaskLog?.(subtask.id, { type: 'note', message: text });
|
|
290
|
+
}
|
|
291
|
+
}
|
|
283
292
|
if (block.type === 'tool_use') {
|
|
284
293
|
const toolName = block.name;
|
|
285
294
|
const toolInput = block.input;
|