opencode icon indicating copy to clipboard operation
opencode copied to clipboard

OpenCode asks for permission for chained cd's that stay within the project

Open a7medev opened this issue 2 days ago • 1 comments

Description

When running chained cd commands that navigate within the project directory, opencode incorrectly requests external_directory permission even though the final directory is still inside the project.

For example, cd subdir && do something && cd .. triggers a permission request to access the parent directory, when in reality the command is just returning to the project root.

Plugins

No response

OpenCode version

1.1.16

Steps to reproduce

  1. Model requests to execute cd subdir && some-command && cd ..
  2. OpenCode shows a permission dialog asking for access to the parent directory due to cd .. in the command.

Screenshot and/or share link

image

Operating System

No response

Terminal

No response

a7medev avatar Jan 13 '26 10:01 a7medev