From ae9fce9b4dd7e315cc4ab01a95d352993ca2b5fc Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sat, 5 Sep 2026 02:35:30 -0700 Subject: [PATCH] refactor(process-table): read the staleness bound from its own module, not the Node-only reader MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #18814 moved PROCESS_TABLE_SNAPSHOT_MAX_STALENESS_MS into process-table-snapshot.ts and left a re-export on the reader, so these two callers still resolve it through `node:child_process`. Both run in Node, so neither is broken — but the renderer file beside this test was the one that blanked the app by importing that exact path, and the boundary ratchet only walks shipped code, so nothing would flag a copy-paste back out of the test. Point both at the defining module. --- config/scripts/agent-inspection-cadence-batching-benchmark.mjs | 2 +- .../terminal-pane/agent-completion-poll-interval.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/scripts/agent-inspection-cadence-batching-benchmark.mjs b/config/scripts/agent-inspection-cadence-batching-benchmark.mjs index 128627676c4..bdca0a835a3 100644 --- a/config/scripts/agent-inspection-cadence-batching-benchmark.mjs +++ b/config/scripts/agent-inspection-cadence-batching-benchmark.mjs @@ -57,7 +57,7 @@ const { POLL_TIER_INTERVAL_MS } = await import( path.join(ROOT, 'src/renderer/src/components/terminal-pane/agent-completion-poll-cadence.ts') ) const { PROCESS_TABLE_SNAPSHOT_MAX_STALENESS_MS } = await import( - path.join(ROOT, 'src/shared/process-table-snapshot-reader.ts') + path.join(ROOT, 'src/shared/process-table-snapshot.ts') ) // Pre-change: independent ±10% jitter per pane, re-rolled on every reschedule. diff --git a/src/renderer/src/components/terminal-pane/agent-completion-poll-interval.test.ts b/src/renderer/src/components/terminal-pane/agent-completion-poll-interval.test.ts index fffbb94de90..05bb62e45e6 100644 --- a/src/renderer/src/components/terminal-pane/agent-completion-poll-interval.test.ts +++ b/src/renderer/src/components/terminal-pane/agent-completion-poll-interval.test.ts @@ -1,5 +1,5 @@ import { describe, expect, it } from 'vitest' -import { PROCESS_TABLE_SNAPSHOT_MAX_STALENESS_MS } from '../../../../shared/process-table-snapshot-reader' +import { PROCESS_TABLE_SNAPSHOT_MAX_STALENESS_MS } from '../../../../shared/process-table-snapshot' import { POLL_TIER_INTERVAL_MS } from './agent-completion-poll-cadence' import { nextCadenceInspectionDelayMs } from './agent-completion-poll-interval'