Github agent does not print stdout for failed shell commands #973

Closed
opened 2026-02-16 17:28:58 -05:00 by yindo · 2 comments
Owner

Originally created by @trousev on GitHub (Jul 29, 2025).

Originally assigned to: @fwang on GitHub.

I am happy user of github agent.

Everything works great, however, when opencode can't execute shell command for any reason it does not show stdout / stderr of failed command.

Here is what I see in action log:


I'll try to build the Dockerfile to see if it works correctly.


|  Bash     {"command":"docker build -t image-test .","description":"Build the Docker image to test if it works correctly"}
|  Read     {"filePath":"/home/runner/work/myproject/myproject/Dockerfile"}


The Docker build failed with a context cancellation error. This is likely due to a timeout or resource limitation rather than an issue with the Dockerfile itself. Let me check the Dockerfile to see if there are any obvious issues:

according to this log, The Docker build failed with a context cancellation error . However, it would be beneficial to see actual command failure, because when being run manually on same host it works fine

Originally created by @trousev on GitHub (Jul 29, 2025). Originally assigned to: @fwang on GitHub. I am happy user of github agent. Everything works great, however, when opencode can't execute shell command for any reason it does not show stdout / stderr of failed command. Here is what I see in action log: ``` I'll try to build the Dockerfile to see if it works correctly. | Bash {"command":"docker build -t image-test .","description":"Build the Docker image to test if it works correctly"} | Read {"filePath":"/home/runner/work/myproject/myproject/Dockerfile"} The Docker build failed with a context cancellation error. This is likely due to a timeout or resource limitation rather than an issue with the Dockerfile itself. Let me check the Dockerfile to see if there are any obvious issues: ``` according to this log, _The Docker build failed with a context cancellation error_ . However, it would be beneficial to see actual command failure, because when being run manually on same host it works fine
yindo closed this issue 2026-02-16 17:28:58 -05:00
Author
Owner

@trousev commented on GitHub (Jul 29, 2025):

/oc maybe you can provide a fix right now?

@trousev commented on GitHub (Jul 29, 2025): /oc maybe you can provide a fix right now?
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#973