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.
Running bare
hush(interactive TUI) from a non-interactive context (agent harness, script, pipe) fails with:exit code 1. The message gives no hint about why or what to use instead.
hush list,hush get, andhush execall 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.