TL;DR
Add a new bash.commands plugin hook that lets plugins register CLI commands which should be exempt from the bash tool's execution timeout.
More detail
Plugins may provide CLI tools (via PATH injection) that are long-running by design (e.g. a plugin CLI that communicates with the opencode server to perform multi-step operations). These commands get killed by the bash tool's timeout.
The bash.commands hook lets plugins declare command names that should bypass the timeout. The bash tool checks if the command being executed starts with any registered command name and skips the timeout if so.
Part of the plugin primitives work tracked in #20018 (split from #21687).
TL;DR
Add a new
bash.commandsplugin hook that lets plugins register CLI commands which should be exempt from the bash tool's execution timeout.More detail
Plugins may provide CLI tools (via PATH injection) that are long-running by design (e.g. a plugin CLI that communicates with the opencode server to perform multi-step operations). These commands get killed by the bash tool's timeout.
The
bash.commandshook lets plugins declare command names that should bypass the timeout. The bash tool checks if the command being executed starts with any registered command name and skips the timeout if so.Part of the plugin primitives work tracked in #20018 (split from #21687).