From 88ca86afaf54381ea006ab30fcbd31de0504b4d3 Mon Sep 17 00:00:00 2001 From: Merge Sim Date: Sun, 6 Sep 2026 16:03:49 -0700 Subject: [PATCH] Restore main's pane-snapshot flag contract Main asks for CreationTime on both projections; this branch's hot-path isolation went away with the async probe it served. --- .../windows-foreground-process-inspection-cost.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/providers/windows-foreground-process-inspection-cost.test.ts b/src/main/providers/windows-foreground-process-inspection-cost.test.ts index 6ee69c978c8..f08d1b690bb 100644 --- a/src/main/providers/windows-foreground-process-inspection-cost.test.ts +++ b/src/main/providers/windows-foreground-process-inspection-cost.test.ts @@ -110,14 +110,14 @@ describe('windows foreground inspection cost per pane', () => { return resolved } - it('requests only command lines on the pane snapshot', async () => { + it('never sets the Memory flag on the snapshot', async () => { await queryWindowsPaneProcessInventory(shellPid(0)) expect(flagsSeen).toHaveLength(1) // Memory is bit 0, and it costs the addon a second OpenProcess per process // carrying PROCESS_VM_READ (process.cc `GetProcessMemoryUsage`). expect(flagsSeen[0]! & 1).toBe(0) - // CreationTime is isolated to ownership reads so this hot scan opens one handle per process. - expect(flagsSeen[0]).toBe(2) + // CommandLine (2) | CreationTime (4). + expect(flagsSeen[0]).toBe(6) }) it('projects the shared snapshot once for the whole pane fan-out', async () => {