Skip to content

Conversation

@bolinfest
Copy link
Collaborator

@bolinfest bolinfest commented May 30, 2025

This attempts to make codex exec more flexible in how the prompt can be passed:

  • as before, it can be passed as a single string argument
  • if - is passed as the value, the prompt is read from stdin
  • if no argument is passed and stdin is a tty, prints a warning to stderr that no prompt was specified an exits non-zero.
  • if no argument is passed and stdin is NOT a tty, prints Reading prompt from stdin... to stderr to let the user know that Codex will wait until it reads EOF from stdin to proceed. (You can repro this case by doing yes | just exec since stdin is not a TTY in that case but it also never reaches EOF).

@bolinfest bolinfest merged commit ae743d5 into main May 30, 2025
18 checks passed
@bolinfest bolinfest deleted the pr1178 branch May 30, 2025 21:41
@github-actions github-actions bot locked and limited conversation to collaborators May 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants