Skip to content

Failed to initialize input reader #2

@remino

Description

@remino

Yup, I’m back.

This is probably not an issue in Shai, but affects it.

I followed the instructions in the README. Installed the necessary script to make it work in my shell as well. I’ve tried both in my default Zsh and in Bash.

First, in Zsh, when starting Shai, it exits immediately and outputs:

Failed to initialize input reader

Seems it cannot capture stdin or something.

I’m using Oh-My-Zsh. I thought maybe tmux, or atuin, or fzf was interfering. I started Zsh without no config and no plugin instead, except the script needed by Shai. I even tried different keybindings. Sadly, same error.

I tried the same in Bash. The UI does show up, and I can the commands after sending my prompt. But accepting the command just exits, and outputs nothing in the command line.

Sounds like this is an issue in crossterm not working with ttys on macOS as mentioned in an issue with rust-pager. I see Shai is using crossterm. I guess it isn’t that cross-platform after all. ¯\_(ツ)_/¯

For now, I can at least use Shai in Zsh with the following:

shai ask --operating-system macos --shell zsh --model open-aigpt4-32k --write-stdout

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions