feat(simulator): disable all SIGWINCH refresh logic to prevent state drift

This commit is contained in:
Mahima Shanware
2026-05-06 23:34:14 +00:00
parent 5ba84077a7
commit a9f7575b4b
+5 -5
View File
@@ -122,7 +122,7 @@ export class UserSimulator {
let screen = this.getScreen();
let strippedScreen = '';
let normalizedScreen = '';
const refreshDelays = [1500, 3000, 5000];
const refreshDelays = []; // SIGWINCH DISABLED
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 {
process.kill(0, 'SIGWINCH');
// SIGWINCH DISABLED: process.kill(0, 'SIGWINCH');
} catch {
process.kill(process.pid, 'SIGWINCH');
// SIGWINCH DISABLED: 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 {
process.kill(0, 'SIGWINCH');
// SIGWINCH DISABLED: process.kill(0, 'SIGWINCH');
} catch {
process.kill(process.pid, 'SIGWINCH');
// SIGWINCH DISABLED: process.kill(process.pid, 'SIGWINCH');
}
return;
}