From dc5db4b01c0afdfc3ebdb080376708f785a1389b Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Mon, 31 Aug 2026 13:04:40 -0700 Subject: [PATCH] fix(lint): merge duplicate process-table-snapshot imports (#17724) main is red on `static analysis`: oxlint's code-quality pass runs with --deny-warnings, and agent-foreground-process-batch.test.ts imports '../../shared/process-table-snapshot' twice (lines 5 and 13), tripping "Modules should not be imported multiple times in the same file". Introduced by #17525. It blocks every open PR, none of which can go green until this lands. --- src/main/providers/agent-foreground-process-batch.test.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/providers/agent-foreground-process-batch.test.ts b/src/main/providers/agent-foreground-process-batch.test.ts index 75c26587897..593754062b3 100644 --- a/src/main/providers/agent-foreground-process-batch.test.ts +++ b/src/main/providers/agent-foreground-process-batch.test.ts @@ -1,16 +1,14 @@ import { describe, expect, it } from 'vitest' import { + buildProcessTableIndex, parseStrictProcessTableRows, - ProcessTableCaptureError + ProcessTableCaptureError, + type ProcessTableIndexStats } from '../../shared/process-table-snapshot' import { resolveAgentForegroundProcessesBatch, resolveAgentForegroundProcessesFromIndex } from './agent-foreground-process' -import { - buildProcessTableIndex, - type ProcessTableIndexStats -} from '../../shared/process-table-snapshot' describe('strict process-table evidence parser', () => { it('extracts pgid/tpgid while retaining command spacing', () => {