Closed denniswebb closed 3 weeks ago
The problem is related to inquire which provide interactive prompts (mikaelmello/inquire#200), Inquire uses an outdated version of crossterm that lacks support for reading standard input from a pipe.
I've encountered similar issue #257 before, but I resolved them by enabling the use-dev-tty
feature for crossterm
(#264).
I have submitted a issue (mikaelmello/inquire#252) to request that Inquire update its crossterm dependency.
Before that, the pipe stdin cannot be used with aichat -e
.
Describe the bug
On Mac, piping data to
aichat -e
always exits non-zero and without allowing you to run with the errorYou can tell that it receives the data and a response from the GPT because it actually shows the proposed command, just exits with the error instead of waiting for your response.
This works as expected without
-e
but of course isn't what I need.To Reproduce
Pipe any input into
aichat -e
Expected behavior
App would present the EREC menu and await my response.
Screenshots/Logs
Configuration
Environment (please complete the following information):
Additional context
I know you've had a few patches before related to this.