mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-24 02:02:42 +00:00
* fix(opencode): set permission rules on the OpenCode session OpenCode stores permission rules on the session and its prompt_async request schema has no permission field, so rules built from provider options and Hub tool grants were dropped on every turn: an agent configured with external_directory: allow still asked before reading outside its worktree. Send the rules where OpenCode reads them — on session.create, and on session.update when resuming a session Paseo did not just create — and stop attaching them to prompts. A resume that cannot apply its rules now fails instead of running under a more permissive policy than configured. The real-server test is taken from Gurvan Campion's #5295, which reached the same diagnosis independently. Co-authored-by: Gurvan Campion <32047986+gurvancampion@users.noreply.github.com> * test(opencode): use function declarations for the permission test helpers --------- Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: Gurvan Campion <32047986+gurvancampion@users.noreply.github.com>