Skip to content

external_directory: "deny" não bloqueia subagentes de acessarem pastas fora do workspace #34987

Closed as not planned

Description

@HPLAY00

Description

Comportamento esperado

Com external_directory: "deny" no opencode.json, qualquer tentativa de leitura/escrita fora do workspace deveria ser bloqueada, inclusive por subagentes.

Comportamento atual

O subagente explore consegue acessar e listar arquivos em pastas fora do workspace (ex: C:\Users\Play\Desktop\guiadosimples\) sem nenhum bloqueio, mesmo com a config ativa.

Passos para reproduzir

  1. Criar opencode.json na raiz do workspace:
{
  "$schema": "https://opencode.ai/config.json",
  "permission": {
    "external_directory": "deny"
  }
}

### Plugins

_No response_

### OpenCode version

_No response_

### Steps to reproduce

_No response_

### Screenshot and/or share link

_No response_

### Operating System

_No response_

### Terminal

_No response_

Activity

  1. github-actions commented on Jul 2, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. HPLAY00 commented on Jul 2, 2026

    @HPLAY00
    Author

    ok

  3. github-actions commented on Sep 1, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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