mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 01:23: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) {
|
||||
case 'data':
|
||||
if (isBinaryStream) break;
|
||||
if (typeof cumulativeOutput === 'string') {
|
||||
cumulativeOutput += event.chunk;
|
||||
} else {
|
||||
cumulativeOutput = event.chunk;
|
||||
}
|
||||
cumulativeOutput = event.chunk;
|
||||
shouldUpdate = true;
|
||||
break;
|
||||
case 'binary_detected':
|
||||
|
||||
Reference in New Issue
Block a user