opencode/packages/plugin-browser/test
Luke Parker 34490b7c7d fix(browser): let a configured browser deny win over the desktop's attach grant
Attaching a desktop browser writes browser:* and skill:browser allows into the
session's permissions. Session rules are evaluated after agent rules, so the
grant overrode a browser deny from config, an agent definition (for example a
"*" deny) or the session itself. Browser tools never called the permission
check either, so tool.use policies did not apply.

The plugin now records each agent's rules before it appends its own default
deny. A browser call is refused when those rules, plus the session's rules
without the grant, deny the browser, decided the way core's tool filter decides.
The call then runs the permission check with the operation as its resource, so
permission.evaluate hooks such as tool.use policies apply. Sessions without a
deny behave as before: the grant allows the check, so nothing prompts.

Refs #54044, #53294, #56869
2026-11-13 08:16:25 +10:00
..
machine.test.ts fix(browser): let a configured browser deny win over the desktop's attach grant 2026-11-13 08:16:25 +10:00
rpc.test.ts chore: upgrade Effect to rc.118 (#50231) 2026-10-09 01:36:06 -07:00
tools.test.ts feat(core): support in-memory skill:// URIs (#60921) 2026-11-01 01:07:13 -05:00
tunnel-machine.test.ts fix(browser): drive tunnel, proxy and network hop lifecycles through state machines (#61996) 2026-11-05 01:00:23 -06:00
tunnel.test.ts fix(browser): drive tunnel, proxy and network hop lifecycles through state machines (#61996) 2026-11-05 01:00:23 -06:00