Skip to content

hush: bare TUI exits 1 with cryptic crossterm error when no TTY is present #57

Description

@AojdevStudio

Running bare hush (interactive TUI) from a non-interactive context (agent harness, script, pipe) fails with:

Error: failed to enable terminal input mode
Caused by: Device not configured (os error 6)

exit code 1. The message gives no hint about why or what to use instead. hush list, hush get, and hush exec all work fine in the same context, so this is only the TUI entry path.

Fix: gate tui::run() on TTY availability up front and return an actionable error pointing at the script-friendly subcommands.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions