Uh oh!
There was an error while loading. Please reload this page.
fix(opencode): wait for shell output capture - #36796
Conversation
The following comment was made by an LLM, it may be inaccurate: Based on my search, here are potentially related PRs that address similar shell output issues: Related PRs:
These PRs are all related to shell output capture and handling. PR #35543 is particularly relevant since it also deals with timing issues between process exit and output capture completion—a concern similar to what #36796 addresses with fiber joining. |
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
MaartenBaert
commented
Aug 14, 2026
Yes, I think this was closed incorrectly. I get that you guys are volunteers but really - this is an obvious bug, it has an obvious solution, I run into this race condition almost daily and it creates real issues, multiple people have independently reported this and submitted a PR with a fix for this ... clearly this is a real issue. |
Issue for this PR
Closes#36795
Type of change
What does this PR do?
Retains and joins the shell output-capture fiber after the process closes or is terminated. This prevents scope cleanup from interrupting output capture before the result is constructed.
How did you verify your code works?
I can't reliably reproduce the issue so I'm not sure whether this actually fixes it. I just ran the local tests to catch obvious regressions.
Screenshots / recordings
N/A
Checklist