fix(core): use current chunk for shell output update instead of cumulative

This commit is contained in:
xuewenjie
2025-12-16 10:26:20 +08:00
parent b272ac0119
commit 8673426d5c

View File

@@ -193,11 +193,7 @@ export class ShellToolInvocation extends BaseToolInvocation<
switch (event.type) {
case 'data':
if (isBinaryStream) break;
if (typeof cumulativeOutput === 'string') {
cumulativeOutput += event.chunk;
} else {
cumulativeOutput = event.chunk;
}
shouldUpdate = true;
break;
case 'binary_detected':