Skip to content

How do I make it not ask for permissions every minute... #28850

@erikkubica

Description

@erikkubica

Question

Hi, I am desperate.

I have my opencode.json permissions like this:

{
    "permission": {
        "*": "allow",
        "bash": {
            "*": "allow",
            "mv": "allow",
            "cp": "allow",
            "rm": "allow",
            "mkdir": "allow",
            "touch": "allow",
            "cd": "allow",
            "bun": "allow",
            "npm": "allow",
            "npx": "allow",
            "php": "allow",
            "node": "allow",
            "grep": "allow",
            "cat": "allow"
        },
        "edit": "allow",
        "read": {
            "*": "allow",
            "*.env": "allow",
            "*.env.*": "allow"
        },
        "external_directory": "allow",
        "doom_loop": "allow"
    }
}

And it asks to execute tests, use cp, use mv,... like...

Even tried configure it according to documentation:
"permission": "allow" (also {"*": "allow"})

without any success. even if i use "allow for this session" 3 minutes later it asks for same permission again and again and again.

Anyone can guide me into right direction?

-- edit
Only way i managed to bypass it is using webui where in settings set autoapprove

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