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.
This commit is contained in:
Merge Sim
2026-09-06 16:03:49 -07:00
parent bd42eaabf2
commit 88ca86afaf
@@ -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 () => {