fix: clarify conflict and response style prompts

Conflict resolution prompts now ask for an analysis-first strategy
Response style instructions are wrapped as system reminders
Prompt templates stay separate from reminder formatting
This commit is contained in:
Bohdan Triapitsyn
2026-05-07 23:03:46 +03:00
parent 35d95c3044
commit 0b0bb11d36
3 changed files with 25 additions and 6 deletions
+15
View File
@@ -0,0 +1,15 @@
const SYSTEM_REMINDER_OPEN = '<system-reminder>';
const SYSTEM_REMINDER_CLOSE = '</system-reminder>';
export const wrapSystemReminder = (text: string): string => {
const trimmed = text.trim();
if (!trimmed) {
return '';
}
if (trimmed.startsWith(SYSTEM_REMINDER_OPEN) && trimmed.endsWith(SYSTEM_REMINDER_CLOSE)) {
return trimmed;
}
return `${SYSTEM_REMINDER_OPEN}\n${trimmed}\n${SYSTEM_REMINDER_CLOSE}`;
};