From a07871a55ee77eea15e4e7d1b6cccce720c6f066 Mon Sep 17 00:00:00 2001 From: Wiedzmin <56316383+art-wiedzmin@users.noreply.github.com> Date: Thu, 30 Jul 2026 21:44:25 +0300 Subject: fix(omp): support Windows session paths (#2092) --- src/integration/assets/herdr-agent-state.test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/integration/assets/herdr-agent-state.test.ts') diff --git a/src/integration/assets/herdr-agent-state.test.ts b/src/integration/assets/herdr-agent-state.test.ts index 1dadbd5f..f54332ce 100644 --- a/src/integration/assets/herdr-agent-state.test.ts +++ b/src/integration/assets/herdr-agent-state.test.ts @@ -227,6 +227,17 @@ for (const integration of integrations) { }); } +test("OMP accepts POSIX and Windows session paths", async () => { + const { isAbsoluteSessionPath } = await importFresh("./omp/herdr-agent-state.ts"); + + expect(isAbsoluteSessionPath("/tmp/omp-session.jsonl")).toBe(true); + expect(isAbsoluteSessionPath("C:\\Users\\User\\.omp\\agent\\sessions\\omp-session.jsonl")).toBe( + true, + ); + expect(isAbsoluteSessionPath("C:/Users/User/.omp/agent/sessions/omp-session.jsonl")).toBe(true); + expect(isAbsoluteSessionPath("relative/omp-session.jsonl")).toBe(false); +}); + test("Pi reports idle only after the agent settles", async () => { const requests = await startRecordingServer("pi-settled"); const { handlers, pi } = createExtensionHarness(); -- cgit v1.2.3