GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing github.com — docs(cli): document opencode run stdin EOF behaviour and workaround by dezren39 · Pull Request #219 · developing-today-forks/opencode Conversation
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 53 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 72 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The following comment was made by an LLM, it may be inaccurate: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 1fbfbaa6d9
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| When stdin is not a terminal, `opencode run` reads stdin until end-of-file and appends whatever it receives to the message argument — this is how `cat context.txt | opencode run "Summarize this"` works. The command does not start until stdin closes, so in automation environments that keep stdin open without ever closing it (some CI runners, `ssh` without a terminal, agent tool harnesses), `opencode run` appears to hang with no output. Redirect stdin from `/dev/null` when you are not piping input: | ||
|
|
||
| ```bash | ||
| opencode run "Explain async/await in JavaScript" < /dev/null |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Document a native Windows EOF workaround
On native Windows, which the project supports, this POSIX redirection does not work as written: CMD uses the NUL device, while PowerShell does not support < for native-command stdin redirection. Because the preceding guidance applies broadly to non-TTY automation rather than only Linux/macOS, Windows users encountering the same stall receive a command that fails before OpenCode starts; qualify this example as POSIX and provide a native Windows equivalent.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.