fix: validate prompt API payloads

Fixes #11
This commit is contained in:
Federico Jaramillo Martinez
2026-06-05 11:09:15 +02:00
parent 3330a5a7fa
commit 82ba2e0490
7 changed files with 110 additions and 9 deletions
@@ -15,4 +15,8 @@ describe("sessionNameGenerator", () => {
expect(fallbackSessionName('<skill name="x" location="/x">\nDo x\n</skill>\n\nCheck the UI now'))
.toBe("Check the UI now");
});
it("skips fallback names when the first request is missing", () => {
expect(fallbackSessionName(undefined)).toBeUndefined();
});
});