From a383557a5d9615bf9fea67a49ef4a1499272cbb5 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Fri, 13 Nov 2026 04:29:32 -0800 Subject: [PATCH] Use fixed event times in terminal recovery regression --- config/flaky-test-pattern-baseline.txt | 1 - .../runtime/terminal/output/terminal-query-responder.test.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/flaky-test-pattern-baseline.txt b/config/flaky-test-pattern-baseline.txt index 7ccccd20106..96ac3cb02ba 100644 --- a/config/flaky-test-pattern-baseline.txt +++ b/config/flaky-test-pattern-baseline.txt @@ -491,7 +491,6 @@ 23 test-no-wall-clock:src/main/runtime/terminal/output/terminal-query-responder.test.ts 3 test-no-wall-clock:src/main/runtime/terminal/query/orca-runtime-codex-idle-title-chat-address.test.ts 1 test-no-wall-clock:src/main/runtime/terminal/recovery/terminal-pane-recovery-liveness-gate.test.ts -16 test-no-wall-clock:src/main/runtime/terminal/wait/tui-idle-hook-lane-runtime.test.ts 1 test-no-wall-clock:src/main/runtime/workspaces/process-listing/runtime-worktree-structured-agent-rows-liveness.test.ts 1 test-no-wall-clock:src/main/runtime/workspaces/removal/owned-session-teardown-policy.test.ts 6 test-no-wall-clock:src/main/skills/install/skill-bundle-process-termination.integration.test.ts diff --git a/src/main/runtime/terminal/output/terminal-query-responder.test.ts b/src/main/runtime/terminal/output/terminal-query-responder.test.ts index 2800f1d20b6..e34c364cf6c 100644 --- a/src/main/runtime/terminal/output/terminal-query-responder.test.ts +++ b/src/main/runtime/terminal/output/terminal-query-responder.test.ts @@ -202,7 +202,7 @@ describe('main-side replay guard', () => { markHiddenRendererPty('pty-recovered') runtime.seedHeadlessTerminal('pty-recovered', 'old screen') await settle(runtime, 'pty-recovered') - runtime.onPtyData('pty-recovered', QUERY_BATCH, Date.now()) + runtime.onPtyData('pty-recovered', QUERY_BATCH, 1_000) runtime.replaceHeadlessTerminalFromRendererSnapshotForRecovery( 'pty-recovered', { data: `restored prompt${QUERY_BATCH}`, cols: 80, rows: 24, seq: 0 }, @@ -210,7 +210,7 @@ describe('main-side replay guard', () => { ) await settle(runtime, 'pty-recovered') expect(replies).toEqual([]) - runtime.onPtyData('pty-recovered', QUERY_BATCH, Date.now()) + runtime.onPtyData('pty-recovered', QUERY_BATCH, 2_000) await settle(runtime, 'pty-recovered') expect(replies.map((reply) => reply.data)).toEqual([ '\x1b[?1;2c',