add back ask-human support

This commit is contained in:
Ramnique Singh 2025-11-18 02:28:49 +05:30
parent 39f0f5af79
commit 36530c2ccd
5 changed files with 131 additions and 24 deletions

View file

@ -62,6 +62,10 @@ export class StreamRenderer {
this.onError(event.error);
break;
}
case "pause-for-human-input": {
this.onPauseForHumanInput(event.toolCallId, event.question);
break;
}
}
}
@ -194,6 +198,13 @@ export class StreamRenderer {
this.write("\n");
}
private onPauseForHumanInput(toolCallId: string, question: string) {
this.write(this.cyan(`\n→ Pause for human input (${toolCallId})`));
this.write("\n");
this.write(this.bold("Question: ") + question);
this.write("\n");
}
private onUsage(usage: {
inputTokens?: number;
outputTokens?: number;