aboutsummaryrefslogtreecommitdiff
path: root/src/integration/assets/herdr-agent-state.test.ts
diff options
context:
space:
mode:
authorWiedzmin <56316383+art-wiedzmin@users.noreply.github.com>2026-07-30 21:44:25 +0300
committerGitHub <noreply@github.com>2026-07-30 21:44:25 +0300
commita07871a55ee77eea15e4e7d1b6cccce720c6f066 (patch)
tree6afaf40f1942145daa297f9d57c33634d927c820 /src/integration/assets/herdr-agent-state.test.ts
parentac47b9e67912c82dac17388e5541d969a7372c23 (diff)
fix(omp): support Windows session paths (#2092)
Diffstat (limited to 'src/integration/assets/herdr-agent-state.test.ts')
-rw-r--r--src/integration/assets/herdr-agent-state.test.ts11
1 files changed, 11 insertions, 0 deletions
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();