Remove unnecessary sleep.

- Code review comment: https://github.com/google-gemini/gemini-code/pull/271#pullrequestreview-2821741430
This commit is contained in:
Taylor Mullen 2025-05-07 23:45:43 -07:00 committed by N. Taylor Mullen
parent 327bd5f836
commit 6989032414
1 changed files with 0 additions and 2 deletions

View File

@ -392,8 +392,6 @@ export const useGeminiStream = (
refreshStatic(); refreshStatic();
} }
await new Promise((resolve) => setTimeout(resolve, 0)); // Allow UI to re-render
if (outcome === ToolConfirmationOutcome.Cancel) { if (outcome === ToolConfirmationOutcome.Cancel) {
let resultDisplay: ToolResultDisplay | undefined; let resultDisplay: ToolResultDisplay | undefined;
if ('fileDiff' in originalConfirmationDetails) { if ('fileDiff' in originalConfirmationDetails) {