fix: improve gateway setup messaging for non-interactive environments

Updated the gateway setup function to provide clearer messaging when no terminal is available, enhancing user understanding of the installation process. This change ensures that users are informed to run 'hermes gateway install' later if the setup is skipped due to terminal unavailability.
This commit is contained in:
teknium1 2026-03-03 19:34:05 -08:00
parent 95e3f4b001
commit 1538be45de

View file

@ -916,8 +916,8 @@ maybe_start_gateway() {
fi
fi
if [ "$IS_INTERACTIVE" = false ]; then
log_info "Gateway setup skipped (non-interactive). Run 'hermes gateway install' later."
if ! [ -e /dev/tty ]; then
log_info "Gateway setup skipped (no terminal available). Run 'hermes gateway install' later."
return 0
fi