You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
codemode: browser tools still listed in system prompt despite global "browser" deny permission #64369
The browser tools are still advertised to the model. After a turn, the UI shows "Instructions updated: core/codemode, core/skill-guidance". The system prompt then contains "The Code Mode tool catalog has changed. New tools are available:" followed by the full browser (45 tools, ...) listing, including tools.browser.back(...).
Expected: tools denied by permissions are left out of the Code Mode catalog and the catalog-change notice. The model should not see them.
Thanks for the clear report and the exact config. I think this is a duplicate of #54044. That issue tracks browser tools staying exposed even when browser is denied. A comment there confirms that a global permissions deny in opencode.json is overridden the same way, and that the denied tools still show up in the Code Mode catalog, which matches what you're seeing.
Possible duplicates and related issues, ordered by likelihood:
For context: in the code I read, when the browser is attached, the browser plugin adds its allow rules at the end of the session's permissions, after the rules that were already there.
I'm closing this issue now as a duplicate of #54044. Please add your details there (2.3.0, OpenCode Desktop on macOS, and the "Instructions updated: core/codemode" catalog-change notice listing browser (45 tools, ...)), since they help show it still happens on the current version. If you think your problem is different, reply here and this issue will be reopened.
Activity
opencodejr commentedon Nov 17, 2026
Thanks for the clear report and the exact config. I think this is a duplicate of #54044. That issue tracks browser tools staying exposed even when
browseris denied. A comment there confirms that a globalpermissionsdeny inopencode.jsonis overridden the same way, and that the denied tools still show up in the Code Mode catalog, which matches what you're seeing.Possible duplicates and related issues, ordered by likelihood:
browsernamespace stays in the Code Mode catalog.For context: in the code I read, when the browser is attached, the browser plugin adds its
allowrules at the end of the session's permissions, after the rules that were already there.I'm closing this issue now as a duplicate of #54044. Please add your details there (2.3.0, OpenCode Desktop on macOS, and the "Instructions updated: core/codemode" catalog-change notice listing
browser (45 tools, ...)), since they help show it still happens on the current version. If you think your problem is different, reply here and this issue will be reopened.