Skip to content

Subagent asking for permission even though it has already #25835

@MartyMcFlyInTheSky

Description

@MartyMcFlyInTheSky

Description

My gitlab subagent has these permissions:

---
description: Use for GitLab tasks via the glab CLI, including issues, merge requests, pipelines, releases, and GitLab API queries.
mode: subagent
permission:
  edit: deny
  bash:
    "*": ask
    "glab *": allow
    "cat *": allow
    "git status *": allow
    "git diff *": allow
    "git log *": allow
    "git branch *": allow
    "git fetch *": allow
---

And it still always asks when accessing glab. So when I accept, it says it "added rule to allow glab * for this session" - which I already have? So why does it ask? Seems like a bug.

OpenCode version

1.14.35

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