You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Mac, piping data to aichat -e always exits non-zero and without allowing you to run with the error
Error: IO error: Failed to initialize input reader
Caused by:
Failed to initialize input reader
You 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
model openai:gpt-4o
max_output_tokens -
temperature -
top_p -
dry_run false
save false
save_session -
highlight true
light_theme true
wrap no
wrap_code false
auto_copy false
keybindings emacs
prelude -
compress_threshold 2000
Environment (please complete the following information):
os version: Sonoma 14.4 (23E214) - Darwin Kernel Version 23.4.0
aichat version: 0.17.0
terminal version: bash-5.2, fish 3.7.1, iTerm2 3.5.0
Additional context
I know you've had a few patches before related to this.
The text was updated successfully, but these errors were encountered:
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 .
sigoden
changed the title
Cannot pipe into aichat -e with or without --no-stream
Cannot pipe into aichat -eMay 21, 2024
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.
The text was updated successfully, but these errors were encountered: