aboutsummaryrefslogtreecommitdiff
path: root/src/integration/assets/herdr-agent-state.test.ts
diff options
context:
space:
mode:
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();