Skip to content

[FEATURE]: bash.commands hook for CLI command timeout exemption #21770

@micuintus

Description

@micuintus
  • I've checked that this feature hasn't been suggested before.

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).

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions