This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu | |
| COPY entry.sh cmd.sh / | |
| ENTRYPOINT ["/entry.sh"] | |
| CMD ["/cmd.sh", "ololo"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { Plugin } from "@opencode-ai/plugin" | |
| /** | |
| * Workaround for https://github.com/anomalyco/opencode/issues/26700 | |
| * | |
| * PR #27201's `deriveSubagentSessionPermission()` inherits parent agent's | |
| * `edit: deny` into subagent sessions, disabling built-in edit/write tools. | |
| * No plugin hook can intercept the "deny" path — `Permission.ask()` throws | |
| * `DeniedError` directly, `Permission.disabled()` strips tools before the | |
| * LLM sees them, and session permission clearing races against tool resolution. |