Skip to content

Opencode ignoring deny permissions? #25515

@mejobloggs-cw

Description

@mejobloggs-cw

Description

I was using my "Plan-Expensive" mode, and during planning I asked it to write a todo.md file expecting it to update the plan with a plan to write the todo.md file, but actually it created the file

        "plan-expensive": {
            "description": "A higher-capability planning mode for difficult design, refactoring, and codebase analysis tasks.",
            "mode": "primary",
            "model": "github-copilot/gpt-5.5",
            "variant": "high",
            "reasoningEffort": "high",
            "textVerbosity": "low",
            "permission": {
                "edit": "deny",
                "bash": "deny"
            }
        }

The docs (https://opencode.ai/docs/permissions/) say:

edit — all file modifications (covers edit, write, patch)

Why / How did it create the file when it was denied edit permission, which the docs say includes "write"?

Plugins

None

OpenCode version

1.14.33

Steps to reproduce

Create an agent with

"permission": {
                "edit": "deny",
                "bash": "deny"
            }

Then ask it to create a todo.md file saying "say hi"

It creates the file. I believe it should not have permission to create the file

Screenshot and/or share link

No response

Operating System

Debian

Terminal

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions