fix(coding-agent): drain startup benchmark replies

This commit is contained in:
Alexey Zaytsev
2026-06-24 21:40:27 -05:00
parent 0bdbe7c57b
commit d8a2cab3d9
+3
View File
@@ -810,6 +810,9 @@ export async function main(args: string[], options?: MainOptions) {
if (startupBenchmark) {
await interactiveMode.init();
time("interactiveMode.init");
// Give the TUI's stdin handler a brief chance to consume terminal query replies
// (Kitty keyboard protocol, device attributes, cell size) before restoring the terminal.
await new Promise((resolve) => setTimeout(resolve, 150));
interactiveMode.stop();
stopThemeWatcher();
printTimings();