Skip to content

Permission prompt appears when reading ~/.config/opencode/AGENTS.md #13751

@scarf005

Description

@scarf005

Problem

Image

When the agent tries to read ~/.config/opencode/AGENTS.md, OpenCode asks for external_directory permission (Access external directory ~/.config/opencode).

This path is OpenCode's own config directory and is already used as a first-class instruction source, so the extra external-directory prompt is unexpected and interrupts normal flows.

Reproduction

  1. Put an AGENTS.md in ~/.config/opencode/.
  2. Start a session in any project.
  3. Trigger a workflow where the model reads instruction files (for example asking it to investigate and read AGENTS files).
  4. Observe permission request: Access external directory ~/.config/opencode.

Expected

Reading instruction files from OpenCode-owned config paths should not trigger external_directory prompts.

Actual

A permission prompt appears for ~/.config/opencode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions