Skip to content

Commit af0c932

Browse files
Add normalizer to strip <reminder> tags from user messages
The CLI now injects dynamic <reminder> tags with SQL table state into user messages. These tags vary based on runtime state and should not affect snapshot matching. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 805ce4d commit af0c932

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/harness/replayingCapiProxy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,7 @@ function transformOpenAIRequestMessage(
631631
function normalizeUserMessage(content: string): string {
632632
return content
633633
.replace(/<current_datetime>.*?<\/current_datetime>/g, "")
634+
.replace(/<reminder>[\s\S]*?<\/reminder>/g, "")
634635
.trim();
635636
}
636637

0 commit comments

Comments
 (0)