mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-14 05:17:18 -07:00
!feat(cli): adopt protocol-backed agent session streaming
This commit is contained in:
committed by
Adam Weidman
parent
c3b5bcb84c
commit
f7b08330f7
@@ -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 () => {
|
||||
|
||||
@@ -467,7 +467,7 @@ export async function runNonInteractive({
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'stream_end': {
|
||||
case 'agent_end': {
|
||||
if (event.reason === 'aborted') {
|
||||
handleCancellationError(config);
|
||||
} else if (event.reason === 'max_turns') {
|
||||
|
||||
Reference in New Issue
Block a user