fix: reset sessionAgentMap in _resetForTesting for test isolation

- Add sessionAgentMap.clear() to _resetForTesting()
- Prevents test pollution when tests run in parallel in CI
This commit is contained in:
justsisyphus 2026-01-28 14:33:14 +09:00
parent b2d618e851
commit c249763d7e

View File

@ -14,6 +14,7 @@ export function getMainSessionID(): string | undefined {
export function _resetForTesting(): void {
_mainSessionID = undefined
subagentSessions.clear()
sessionAgentMap.clear()
}
const sessionAgentMap = new Map<string, string>()