telemetry: track interactive session state (#12856)

Co-authored-by: owenofbrien <86964623+owenofbrien@users.noreply.github.com>
This commit is contained in:
N. Taylor Mullen
2025-11-11 02:03:32 -08:00
committed by GitHub
parent e79f62694a
commit 7bb13d1c41
24 changed files with 132 additions and 25 deletions
@@ -117,6 +117,7 @@ describe('ChatCompressionService', () => {
mockConfig = {
getCompressionThreshold: vi.fn(),
getContentGenerator: vi.fn(),
isInteractive: vi.fn().mockReturnValue(false),
} as unknown as Config;
vi.mocked(tokenLimit).mockReturnValue(1000);
@@ -35,6 +35,7 @@ describe('LoopDetectionService', () => {
beforeEach(() => {
mockConfig = {
getTelemetryEnabled: () => true,
isInteractive: () => false,
} as unknown as Config;
service = new LoopDetectionService(mockConfig);
vi.clearAllMocks();
@@ -741,6 +742,7 @@ describe('LoopDetectionService LLM Checks', () => {
generateContentConfig: {},
}),
},
isInteractive: () => false,
} as unknown as Config;
service = new LoopDetectionService(mockConfig);