Skip to content

Conversation

blaix
Copy link
Contributor

@blaix blaix commented Aug 4, 2025

This fixes #341

It changes the "quiet" flag to "headless" for a better description of what's now happening. Previously gren run bypassed stdout redirection for the compile step, now it's also bypassing stdin redirection. This prevents hijacking the stdin of the program being run.

In a separate commit, it also simplifies the RedirectTerminalIO message.

Note: there's a larger-scale fix that could be made here by handling stdin redirection separately, tracking the target on the model. I went with this smaller-scale fix for now.

blaix added 2 commits August 4, 2025 06:18
The streams that were being passed are never used.
@blaix blaix requested a review from robinheghan August 4, 2025 10:49
@blaix blaix merged commit 0bd3975 into main Aug 4, 2025
10 checks passed
@blaix blaix deleted the run-stdin-fix branch August 4, 2025 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error reading stdin with gren run

2 participants