Skip to content

Commit cf9460b

Browse files
waleedlatif1claude
andcommitted
fix(browser-use): respect API default for highlightElements
Only send highlightElements when user explicitly toggles it; previously defaulted to true which silently overrode the v2 API default of false. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 5c7973d commit cf9460b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/sim/tools/browser_use/run_task.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ function buildRequestBody(
132132
if (typeof params.thinking === 'boolean') body.thinking = params.thinking
133133
if (typeof params.vision === 'boolean' || params.vision === 'auto') body.vision = params.vision
134134
if (params.systemPromptExtension) body.systemPromptExtension = params.systemPromptExtension
135-
body.highlightElements = params.highlightElements ?? true
135+
if (typeof params.highlightElements === 'boolean')
136+
body.highlightElements = params.highlightElements
136137

137138
const allowedDomains = parseAllowedDomains(params.allowedDomains)
138139
if (allowedDomains) body.allowedDomains = allowedDomains

0 commit comments

Comments
 (0)