mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-06 17:12:42 -07:00
!feat(cli): adopt protocol-backed agent session streaming
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user