fix(coding-agent): drain startup benchmark replies
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user