Skip to content

Conversation

@mohammeds1992
Copy link
Contributor

No description provided.

@mohammeds1992 mohammeds1992 requested a review from Aman035 August 12, 2025 07:43
Copy link
Member

@Aman035 Aman035 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Status script should be fixed to show syned up rather than syncing when node is at latetst height and is just gossiping

When running curl | bash, stdin is the pipe but stderr is still
connected to the terminal. Check stderr (-t 2) instead of stdin
to properly detect interactive mode for log viewer.

This ensures remote installer shows the same interactive TUI with
sticky footer as local installation.
When running 'curl | bash', all file descriptors (stdin, stdout, stderr) are
non-TTY because bash runs as a subprocess with piped input. However, /dev/tty
always points to the controlling terminal when available.

This fix ensures remote installer shows interactive log viewer with sticky
footer, matching the local installation behavior.

Previous attempts:
- Checking stderr (-t 2) failed because ALL FDs are non-TTY in piped context
- Checking stdin/stdout (-t 0 && -t 1) is correct for prompts but not for
  detecting terminal availability

This resolves the issue where remote installation showed non-interactive
logs mode instead of the interactive TUI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants