Skip to content

Improve setup login: browser hint and env inheritance#19

Merged
juhgiyo merged 1 commit intomainfrom
claude/improve-setup-login
Mar 17, 2026
Merged

Improve setup login: browser hint and env inheritance#19
juhgiyo merged 1 commit intomainfrom
claude/improve-setup-login

Conversation

@juhgiyo
Copy link
Copy Markdown
Contributor

@juhgiyo juhgiyo commented Mar 17, 2026

Summary

  • Print helpful message before claude auth login so users know to look for a URL if the browser doesn't open
  • Explicitly set cmd.Env = os.Environ() to ensure DISPLAY/WAYLAND_DISPLAY are inherited for browser opening on Linux
  • Fix README: claude /loginclaude auth login

Test plan

  • go test -v ./... passes
  • Test on Linux: verify browser opens or URL is visible in output

🤖 Generated with Claude Code

- Print helpful message before auth ("If a browser window does not
  open, copy the URL from the output below")
- Explicitly inherit environment via cmd.Env so DISPLAY/WAYLAND_DISPLAY
  are available for browser opening on Linux
- Fix README: claude /login → claude auth login

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@juhgiyo juhgiyo merged commit 1e2d6f1 into main Mar 17, 2026
1 check passed
@juhgiyo juhgiyo deleted the claude/improve-setup-login branch March 17, 2026 16:11
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.

1 participant