mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
update shell output at an interval to reduce flicker (#614)
This commit is contained in:
parent
2582c20e2a
commit
b0aeeb53b1
4 changed files with 35 additions and 22 deletions
|
|
@ -68,7 +68,7 @@ export interface Tool<
|
|||
execute(
|
||||
params: TParams,
|
||||
signal: AbortSignal,
|
||||
onOutputChunk?: (chunk: string) => void,
|
||||
updateOutput?: (output: string) => void,
|
||||
): Promise<TResult>;
|
||||
}
|
||||
|
||||
|
|
@ -154,7 +154,7 @@ export abstract class BaseTool<
|
|||
abstract execute(
|
||||
params: TParams,
|
||||
signal: AbortSignal,
|
||||
onOutputChunk?: (chunk: string) => void,
|
||||
updateOutput?: (output: string) => void,
|
||||
): Promise<TResult>;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue