From 3ebe60082c0aac9b0f5a74d3b4d51012f957f165 Mon Sep 17 00:00:00 2001 From: Xuepoo Date: Sat, 26 Sep 2026 20:34:08 +0800 Subject: [PATCH] fix(codeql): resolve code scanning alerts - Alert #5: Remove useless assignment to baselineTerminals/baselineViews - Alert #3: Remove unused SocketDirStat import Fixes: 2 of 4 CodeQL alerts --- src/campaign.ts | 4 ++-- tests/campaign.test.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/campaign.ts b/src/campaign.ts index 6606b17..199c3b1 100644 --- a/src/campaign.ts +++ b/src/campaign.ts @@ -2636,8 +2636,8 @@ export async function probeTerminalSpawnObservability( const declared = new Set(); const owned = new Set(); let previousFocus: string | undefined; - let baselineTerminals: ReadonlySet = new Set(); - let baselineViews: ReadonlySet = new Set(); + let baselineTerminals: ReadonlySet; + let baselineViews: ReadonlySet; try { const before = await terminalSummary(dispatcher, "before"); baselineTerminals = new Set(before.terminals); diff --git a/tests/campaign.test.ts b/tests/campaign.test.ts index b9aaee8..a7456f8 100644 --- a/tests/campaign.test.ts +++ b/tests/campaign.test.ts @@ -51,7 +51,6 @@ import { type CtlInvocation, type CtlResult, type ProcessDispatcherConfig, - type SocketDirStat, } from "../src/campaign.js"; import { ProtocolErrorImpl, decodeResponse } from "../src/protocol.js"; import {