From d428edbdcf67cd335f085be4c334c0da8c0e5f63 Mon Sep 17 00:00:00 2001 From: Mahima Shanware Date: Thu, 7 May 2026 00:38:41 +0000 Subject: [PATCH] feat(simulator): clean restoration of SIGWINCH refresh logic --- packages/cli/src/services/UserSimulator.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/cli/src/services/UserSimulator.ts b/packages/cli/src/services/UserSimulator.ts index 61da721905..9ba132412c 100644 --- a/packages/cli/src/services/UserSimulator.ts +++ b/packages/cli/src/services/UserSimulator.ts @@ -122,7 +122,7 @@ export class UserSimulator { let screen = this.getScreen(); let strippedScreen = ''; let normalizedScreen = ''; - const refreshDelays = []; // SIGWINCH DISABLED + const refreshDelays = [1500, 3000, 5000]; for (let attempt = 0; attempt < refreshDelays.length; attempt++) { if (!screen) break; @@ -155,9 +155,9 @@ export class UserSimulator { `[SIMULATOR] Screen blank and BLOCKED. Attempting SIGWINCH refresh ${attempt + 1}/${refreshDelays.length} with ${refreshDelays[attempt]}ms delay.`, ); try { - // SIGWINCH DISABLED: process.kill(0, 'SIGWINCH'); + process.kill(0, 'SIGWINCH'); } catch { - // SIGWINCH DISABLED: process.kill(process.pid, 'SIGWINCH'); + process.kill(process.pid, 'SIGWINCH'); } await new Promise((resolve) => setTimeout(resolve, refreshDelays[attempt]), @@ -203,9 +203,9 @@ export class UserSimulator { '[SIMULATOR] Screen is blank but system is BLOCKED. Sending SIGWINCH refresh.', ); try { - // SIGWINCH DISABLED: process.kill(0, 'SIGWINCH'); + process.kill(0, 'SIGWINCH'); } catch { - // SIGWINCH DISABLED: process.kill(process.pid, 'SIGWINCH'); + process.kill(process.pid, 'SIGWINCH'); } return; }