Repository navigation
fix(tui): exit on empty non-interactive stdin - #42235
xichen1997 wants to merge 1 commit into
Conversation
|
The following comment was made by an LLM, it may be inaccurate: Related PRs found:
These PRs appear to address related stdin management issues, though #42235 specifically targets the EOF+non-interactive stdin case to prevent indefinite session hangs and enable auto-sleep. The other PRs focus on broader stdin isolation and UI protection. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
|
I am affected by this issue. Would love to see it merged. |
|
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. |
Issue for this PR
Closes #42234
Type of change
What does this PR do?
Exits before starting the TUI when stdin is non-interactive, reaches EOF, and no prompt was provided. This prevents OpenCode from holding an active exec session indefinitely and blocking auto-sleep.
Docker reproduction:
How did you verify your code works?
Screenshots / recordings
Not applicable.
Checklist