mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-05 08:33:58 -07:00
Fix race condition in terminal rendering in UserSimulator
This commit is contained in:
committed by
Mahima Shanware
parent
fc05f78e55
commit
7cc657add2
@@ -316,6 +316,10 @@ ${strippedScreen}
|
||||
}
|
||||
|
||||
for (const char of keys) {
|
||||
if (char === '\r') {
|
||||
// Wait a bit to ensure the previous character is rendered before submitting
|
||||
await new Promise((resolve) => setTimeout(resolve, 50));
|
||||
}
|
||||
this.stdinBuffer.write(char);
|
||||
// Small delay to ensure Ink processes each keypress event individually
|
||||
// while preventing UI state collisions during long simulated inputs.
|
||||
|
||||
Reference in New Issue
Block a user