Skip to content

Main agent often asking to access external_directory which is the one we are in (worktrees) #13346

@jacquesbh

Description

@jacquesbh

Description

Using the Desktop app, on macOS.

I've started a new workspace (git worktree) and I am running some sessions on it.

The main agent often ask for permission to access "external_dir" which is the directory of the worktree itself inside the ~/.opencode directory.

I always need to deny the permission and say You don't need to access external directory, everything you need is in the current dir. and it continues correctly.

Plugins

No response

OpenCode version

1.1.60, but it happens for a while now.

Steps to reproduce

Hard to do so, you need a new workspace and your agent needs to decide to use the external directory instead of current…
I use GPT 5.2 Codex xhigh most of the time.

Screenshot and/or share link

Image

Operating System

macOS Sequoia 15.7

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

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