-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
Description
When trying to sign in to Claude Pro/Max, the TUI pops up a window in the center of the screen with a long URL, then says "enter the authentication code". The docs suggest that it will automatically open a browser to this URL.
If using opencode on a remote server over SSH, the "automatically open a browser" function is obviously not usable. And, it's not easily possible to copy the long URL out of the popup box. The TUI's click override prevents highlighting the URL (or rather, you can highlight it with click and drag, but the highlight vanishes as soon as you release the mouse button, and you can't copy). Overriding the click override (by holding shift) lets you highlight the relevant text, but it also picks up a lot of cruft from the background window which you have to edit out manually in a text editor or similar.
In the case where it can't open a browser, the TUI should present the auth URL in full, without any click override to prevent copying, and without cruft in the background to pollute a forced copy.
Plugins
none
OpenCode version
1.1.3
Steps to reproduce
- Start opencode on a remote server over SSH
- Attempt to connect to a Claude Pro/Max plan
- fail
Screenshot and/or share link
No response
Operating System
Arch Linux
Terminal
alacritty/SSH/tmux