[PR #5179] feat: add options for bash timeout #11281

Closed
opened 2026-02-16 18:16:05 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/5179

State: closed
Merged: No


Summary

Added per-agent bash timeout configuration to support long-running builds and tests.

When working on large projects, the default bash timeout was insufficient for compilation and test suites. This change allows configuring minimum and maximum timeouts per agent:

{
  "agent": {
    "build": {
      "bash": {
        "timeout": 120000, // 2 min minimum (default: 60s)
        "timeout_max": 600000, // 10 min maximum (default: 10min)
      },
    },
  },
}

The timeout calculation ensures commands get at least the configured minimum while respecting the maximum cap: timeout = min(max(bash.timeout, params.timeout), bash.timeout_max)

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/5179 **State:** closed **Merged:** No --- # Summary **Added per-agent bash timeout configuration to support long-running builds and tests.** When working on large projects, the default bash timeout was insufficient for compilation and test suites. This change allows configuring minimum and maximum timeouts per agent: ```jsonc { "agent": { "build": { "bash": { "timeout": 120000, // 2 min minimum (default: 60s) "timeout_max": 600000, // 10 min maximum (default: 10min) }, }, }, } ``` The timeout calculation ensures commands get at least the configured minimum while respecting the maximum cap: `timeout = min(max(bash.timeout, params.timeout), bash.timeout_max)`
yindo added the pull-request label 2026-02-16 18:16:05 -05:00
yindo closed this issue 2026-02-16 18:16:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11281