Require explicit commenter context in openers

This commit is contained in:
jjbrunton committed 2026-08-14 12:50:39 +01:00
1 parent f77157d303
commit 2500f0a23c
4 files changed
+18 -2

No files matched your search

+1
View File
@@ -669,6 +669,7 @@ describe('OpenRouterClient', () => {
const userPrompt = mockCreate.mock.calls[0][0].messages[1].content as string;
expect(systemPrompt).toContain('The RECIPIENT is the commenter');
expect(systemPrompt).toContain('The SOURCE POST SUBJECT is a different person');
expect(systemPrompt).toContain('The first sentence MUST explicitly anchor to the public comment');
expect(userPrompt).toContain('I want that too');
expect(`${systemPrompt}\n${userPrompt}`).not.toContain('Write a message for Commenter about');
});