aws / aws/amazon-q-developer-cli
Q CLI login fails to display auth URL when R (r-base) is installed - attempts browser redirect instead
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 439
- PR merge metrics
- No merged PRs in 30d
Description
### Checks
- [x] I have searched [github.com/aws/amazon-q-developer-cli/issues](https://github.com/aws/amazon-q-developer-cli/issues?q=) and there are no duplicates of my issue
- [x] I have run `q doctor` in the affected terminal session
- [x] I have run `q restart` and replicated the issue again
### Operating system
Linux (Docker container)
### Expected behaviour
q login should display the authentication URL in the terminal regardless of whether R is installed, allowing users to manually copy and paste the URL into their browser.
### Actual behaviour
With R installed, q login tries to open a browser tab directly instead of showing the URL in the terminal.
### Steps to reproduce
1. Create a Docker container with r-base installed
2. Install Q CLI in the container
3. Run q login
4. Observe that the command tries to open a browser instead of showing the URL
Additional Info:
Minimal reproduction case available via Dockerfile that demonstrates the issue when r-base line is uncommented. Issue identified through testing - Q login works normally until r-base package
is added to the environment.
### Environment
```yaml
```
Contributor guide
Assessment
This issue has not been assessed yet.