Skip to content

feat(studio): add Always allow for browser scripts - #17481

Open
bezabyte wants to merge 1 commit into
unslothai:mainfrom
bezabyte:feat/browser-script-allow
Open

bezabyte wants to merge 1 commit into
unslothai:mainfrom
bezabyte:feat/browser-script-allow

Conversation

@bezabyte

Copy link
Copy Markdown
Contributor

Summary

  • add a persisted global Always allow choice for Browser use → Run scripts
  • keep Ask every time as the safe default and Never as the hard block
  • skip only the script approval prompt in Allow mode; page-change checks and the existing script safety path still apply
  • add regression coverage and before/after visuals

Fixes #16705

Before

Browser scripts could only be set to Ask every time or Never, so even trusted read-only dashboards prompted for every browser_evaluate call.

Before

After

Users can explicitly opt into Always allow globally. The default remains Ask every time, and Never still removes browser_evaluate from the offered tool set.

After

Verification

  • node --experimental-strip-types --test tests/browser-agent-script.test.ts tests/browser-agent-gate.test.ts (14 passed)
  • node scripts/typecheck.mjs --tests reached existing unrelated errors in attachment-content.ts and markdown-data-images.ts; no new error was reported for changed files
  • git diff --check
  • SVG XML parse validation passed

@danielhanchen danielhanchen added affects UI# new-feature# security# Moves a security boundary: sandbox, allowlist, permission or network guard labels Nov 12, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

affects UI# new-feature# security# Moves a security boundary: sandbox, allowlist, permission or network guard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add an "Always allow" option for browser script execution

3 participants