Skip to content

Fix login command to read from tty for authentication#6

Merged
PabloZaiden merged 1 commit intomainfrom
fix-login-step
Feb 11, 2026
Merged

Fix login command to read from tty for authentication#6
PabloZaiden merged 1 commit intomainfrom
fix-login-step

Conversation

@PabloZaiden
Copy link
Owner

This pull request makes a minor change to the authentication flow in the opencode-server.sh script by ensuring that the opencode auth login command reads input from the terminal device. This helps avoid issues when the script is run in contexts where standard input may not be a terminal.

Copilot AI review requested due to automatic review settings February 11, 2026 18:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adjusts the opencode-server.sh authentication step so opencode auth login reads from the terminal device, preventing failures when stdin isn’t a TTY (e.g., when the script is piped).

Changes:

  • Redirect opencode auth login stdin to /dev/tty during the “authentication required” flow.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@PabloZaiden PabloZaiden merged commit d852826 into main Feb 11, 2026
7 checks passed
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