Skip to content

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

@a7medev

Description

@a7medev

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions