OpenCode bug: path-based deny permissions bypassed via session.move
hubick · ghdev · 2026-12-02
A newly filed OpenCode issue (#67636, v2.4.1) shows that even with {"action":"edit","resource":".opencode/","effect":"deny"} rules, an agent holding opencodesessionmove permission can call tools.opencode.session.move({directory: ".opencode/agents"}) and then edit protected files with unprefixed names — defeating the sandbox meant to stop agents from rewriting their own agent definitions and self-granting permissions.
More from coding & agent
- Google clarifies Antigravity TOS: only ACP or headless CLI access, no account pooling — op7418 · 2026-12-02
- Obvious launches 'software factories' with $1M liability insurance, 6-month migration done in 48 hours — cneuralnetwork · 2026-12-02
- Claude nails our PDF workflow, but company-wide agent Hermes can't replicate it — CA_HOAguy · 2026-12-02
- AI Engineering Bootcamp makes deployment mandatory as employers ask for it — Al_Grigor · 2026-12-02
- Ant Group's H-Search: stateful harness lets 27B reasoning model rival larger ones — _reachsumit · 2026-12-02
- Hands-on with Google Antigravity: extra tool calls, verbose IDE replies, and missing Chrome support — philhchen · 2026-12-02