mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-09 02:22:43 -07:00
Fix(chat): Ensure model responds when next speaker check indicates
- Corrects an issue where the `nextSpeakerCheck` would determine the model should speak next, but the models response was not properly propagated due to a missing `yield*` in a recursive call within `sendMessageStream`. - This change ensures that when the model is designated as the next speaker, its generated content is correctly unwoven and returned, allowing the conversation to proceed as expected. Part of https://github.com/google-gemini/gemini-cli/issues/551
This commit is contained in:
committed by
N. Taylor Mullen
parent
68c54a7f04
commit
9c5a9f5570
@@ -170,7 +170,7 @@ export class GeminiClient {
|
||||
const nextSpeakerCheck = await checkNextSpeaker(chat, this);
|
||||
if (nextSpeakerCheck?.next_speaker === 'model') {
|
||||
const nextRequest = [{ text: 'Please continue.' }];
|
||||
return this.sendMessageStream(chat, nextRequest, signal, turns - 1);
|
||||
yield* this.sendMessageStream(chat, nextRequest, signal, turns - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user