opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix: permission pattern mismatch for tool-output directory

Open Th0rgal opened this issue 3 days ago • 2 comments

Fixes #7876

external-directory.ts appends /* when creating permission patterns, but agent.ts was setting the allow rule without it. The patterns never matched, so permission requests fell through to "ask" and hung in headless mode.

Changed agent.ts to use ${Truncate.DIR}/* instead of Truncate.DIR.

Tested by running the agent tests (bun test agent.test.ts).

Th0rgal avatar Jan 11 '26 22:01 Th0rgal