!feat(cli): adopt protocol-backed agent session streaming

This commit is contained in:
Adam Weidman
2026-03-20 11:19:34 -04:00
parent 3e0b8aa958
commit f77e4716fa
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -300,9 +300,7 @@ describe('runNonInteractive', () => {
prompt_id: 'prompt-id-stream',
});
expect(streamSpy).toHaveBeenCalledWith({
streamId: expect.any(String),
});
expect(streamSpy).toHaveBeenCalledWith({ streamId: expect.any(String) });
});
it('should register activity logger when GEMINI_CLI_ACTIVITY_LOG_TARGET is set', async () => {
+1 -1
View File
@@ -466,7 +466,7 @@ export async function runNonInteractive({
}
break;
}
case 'stream_end': {
case 'agent_end': {
if (event.reason === 'aborted') {
handleCancellationError(config);
} else if (event.reason === 'max_turns') {