fix(coding-agent): print benchmark timings after TUI stop (#6030)
closes #6029
This commit is contained in:
@@ -810,9 +810,9 @@ export async function main(args: string[], options?: MainOptions) {
|
|||||||
if (startupBenchmark) {
|
if (startupBenchmark) {
|
||||||
await interactiveMode.init();
|
await interactiveMode.init();
|
||||||
time("interactiveMode.init");
|
time("interactiveMode.init");
|
||||||
printTimings();
|
|
||||||
interactiveMode.stop();
|
interactiveMode.stop();
|
||||||
stopThemeWatcher();
|
stopThemeWatcher();
|
||||||
|
printTimings();
|
||||||
if (process.stdout.writableLength > 0) {
|
if (process.stdout.writableLength > 0) {
|
||||||
await new Promise<void>((resolve) => process.stdout.once("drain", resolve));
|
await new Promise<void>((resolve) => process.stdout.once("drain", resolve));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user