mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix(core): use current chunk for shell output update instead of cumulative
This commit is contained in:
@@ -193,11 +193,7 @@ export class ShellToolInvocation extends BaseToolInvocation<
|
|||||||
switch (event.type) {
|
switch (event.type) {
|
||||||
case 'data':
|
case 'data':
|
||||||
if (isBinaryStream) break;
|
if (isBinaryStream) break;
|
||||||
if (typeof cumulativeOutput === 'string') {
|
cumulativeOutput = event.chunk;
|
||||||
cumulativeOutput += event.chunk;
|
|
||||||
} else {
|
|
||||||
cumulativeOutput = event.chunk;
|
|
||||||
}
|
|
||||||
shouldUpdate = true;
|
shouldUpdate = true;
|
||||||
break;
|
break;
|
||||||
case 'binary_detected':
|
case 'binary_detected':
|
||||||
|
|||||||
Reference in New Issue
Block a user