refactor(coach): count the assistant messages before the window inside the conversation read

This commit is contained in:
Marc-André Bombeck committed 2026-09-27 13:22:09 +02:00
1 parent 4e47670f25
commit d6ac4acad2
5 files changed
+97 -71

No files matched your search

@@ -169,7 +169,7 @@ describe("POST /api/insights/chat — fence guard", () => {
expect(fetchConversationWithMessages).toHaveBeenCalledWith(
"u1",
"fenced-conv",
{ documentScoped: false },
{ documentScoped: false, countEarlierAssistant: true },
);
expect(auditLog).not.toHaveBeenCalled();
});