Skip to content
This repository was archived by the owner on May 1, 2026. It is now read-only.

fix: Read stdin directly for onboard Enter prompt#23

Merged
mslipper merged 8 commits into
mainfrom
fix-onboard-enter-prompt
Mar 29, 2026
Merged

fix: Read stdin directly for onboard Enter prompt#23
mslipper merged 8 commits into
mainfrom
fix-onboard-enter-prompt

Conversation

@mslipper

Copy link
Copy Markdown
Contributor

Summary

  • Replace bufio.NewReader(os.Stdin).ReadBytes('\n') with a direct byte-at-a-time read from os.Stdin
  • bufio.NewReader can conflict with tap/bubbletea's raw-mode terminal handling, causing the "Press Enter to connect" prompt to not register keypresses

bufio.NewReader can conflict with tap/bubbletea's raw-mode terminal
handling, causing the Enter prompt to not register. Read one byte at a
time from os.Stdin directly instead.
go-tty (used by tap) opens /dev/tty directly and disables echo/canonical
mode on it. The previous stty sane targeted stdin which is a different fd.
Now we open /dev/tty explicitly for stty sane, then syscall.Exec into SSH
to kill tap's background readKeys goroutine that was stealing input bytes.
@mslipper mslipper merged commit 3e990eb into main Mar 29, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant