Skip to content

codemode: browser tools still listed in system prompt despite global "browser" deny permission #64369

Closed as duplicate

Description

@Mahmoud-Shereif

Description

I denied all browser tools in my global opencode.jsonc:

"permissions": [
  { "action": "browser", "resource": "*", "effect": "deny" },
  ...
]

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.

Possibly related: #54044

Plugins

None

OpenCode version

2.3.0 (OpenCode Desktop)

Steps to reproduce

  1. Add { "action": "browser", "resource": "*", "effect": "deny" } to permissions in ~/.config/opencode/opencode.jsonc.
  2. Start a session and send any message (here, one that loads a skill).
  3. Observe "Instructions updated: core/codemode, core/skill-guidance" in the UI.
  4. Open the System Prompt panel. The Code Mode catalog lists browser.* tools.

Screenshot

opencode-codemode-browser-redacted

Operating System

macOS 27.2.1

Terminal

None (OpenCode Desktop app)

Activity

  1. opencodejr commented on Nov 17, 2026

    @opencodejr
    Contributor

    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.

  2. added
    area/core
    type/bug
    version/v2
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreplatform/macostype/bugversion/v2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions