opencode
opencode copied to clipboard
OpenCode asks for permission for chained cd's that stay within the project
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
- Model requests to execute
cd subdir && some-command && cd .. - OpenCode shows a permission dialog asking for access to the parent directory due to
cd ..in the command.
Screenshot and/or share link
Operating System
No response
Terminal
No response