From de74b32c3499267826ab36c512493c288ab266e9 Mon Sep 17 00:00:00 2001 From: "Tommy D. Rossi" Date: Thu, 26 Feb 2026 13:33:42 +0100 Subject: [PATCH] fix: skip diff mode when search string is provided in snapshot/markdown/html When both showDiffSinceLastCall and search were set, the diff block returned early and the search filter was silently ignored. Now all three functions (snapshot, getPageMarkdown, getCleanHTML) skip diffing when a search string is present, ensuring the agent always gets filtered results. --- playwriter/src/clean-html.ts | 4 ++-- playwriter/src/executor.ts | 4 ++-- playwriter/src/page-markdown.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/playwriter/src/clean-html.ts b/playwriter/src/clean-html.ts index 036fd86..6905e28 100644 --- a/playwriter/src/clean-html.ts +++ b/playwriter/src/clean-html.ts @@ -76,8 +76,8 @@ export async function getCleanHTML(options: GetCleanHTMLOptions): Promise