[PR #1811] [CLOSED] Fix: Improve bash tool timeout and output handling #10069

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1811
Author: @xhuw
Created: 8/11/2025
Status: Closed

Base: devHead: bash-timeout-and-output-handling


📝 Commits (1)

  • 21aa7c8 Improve bash timeout handling

📊 Changes

2 files changed (+48 additions, -2 deletions)

View changed files

📝 packages/opencode/src/tool/bash.ts (+19 -2)
📝 packages/opencode/test/tool/bash.test.ts (+29 -0)

📄 Description

My attempt to resolve #1721

2 key changes:

  1. Detects timeouts and report to the LLM
  2. create separate output for the LLM which identifies the stdout, stderr, exitCode and timeout

10 minute max timeout is still too short. I am not sure why its there though so not changing it


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1811 **Author:** [@xhuw](https://github.com/xhuw) **Created:** 8/11/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `bash-timeout-and-output-handling` --- ### 📝 Commits (1) - [`21aa7c8`](https://github.com/anomalyco/opencode/commit/21aa7c8244908938642a466d0f47f523b23461d7) Improve bash timeout handling ### 📊 Changes **2 files changed** (+48 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/tool/bash.ts` (+19 -2) 📝 `packages/opencode/test/tool/bash.test.ts` (+29 -0) </details> ### 📄 Description My attempt to resolve #1721 2 key changes: 1. Detects timeouts and report to the LLM 2. create separate output for the LLM which identifies the stdout, stderr, exitCode and timeout 10 minute max timeout is still too short. I am not sure why its there though so not changing it --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:39 -05:00
yindo closed this issue 2026-02-16 18:14:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10069