-
Notifications
You must be signed in to change notification settings - Fork 9
OpenCode frequent pause for permissions #7
Description
I'm using OpenCode with trycycle. The process keeps stopping to ask for permissions to new temp folders.
Permission required
Access files outside the project directory
/tmp/trycycle-phase-planning-edit-s9_6lhdz/dispatch/*
the sub-folder of tmp is different every time.
According to Copilot, adding a opencode.json file either in the project root or in ~/.config/opencode/opencode.json may help, but "OpenCode currently has several open issues related to path‑based permissions not matching patterns correctly".
{ "permission": { "read": { "/tmp/**": "allow" }, "edit": { "/tmp/**": "allow" } } }
"Many users report that /tmp/** does not match dynamically created subfolders reliably due to OpenCode’s path‑matching bugs."
It seems to me the easy answer is to move the trycycle temp folders into a tmp folder inside the project root, and add a .gitignore rule to ignore them. Can that be done inside of trycycle?