Repository navigation
Conversation
…-methods Add no-browser option for login
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
This was referenced Dec 28, 2025
Closed
Contributor
|
We've updated our contribution guidelines to clarify that we're currently accepting contributions for bugs and security fixes, but we're not generally accepting new features at this time. We need to make sure that all new features compose well with both existing and upcoming features and fit into our roadmap. If you would like to propose a new feature, please file or upvote an enhancement request in the issue tracker. We will generally prioritize new features based on community feedback. |
swordfish444
pushed a commit
to swordfish444/codex
that referenced
this pull request
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #8576
Summary
This PR adds a
--no-browserflag to thecodex logincommand to suppress automatically opening the default browser during the ChatGPT OAuth login flow.Motivation
In headless / remote / SSH environments (or when embedding login into a controlled browser context), auto-opening a browser is not desirable and sometimes impossible. Users typically want the CLI to print the auth URL so they can open it in any browser they have access to.
What changed
--no-browsertocodex login.open_browserboolean through the ChatGPT login path and applies it to the login server options.open_browseris enabled (auto-open vs manual open).docs/authentication.mdto mention--no-browserfor headless setups.Testing
cargo fmtcargo clippy -p codex-cli --testscargo clippy -p codex-login --testsNotes
Default behavior is unchanged: without
--no-browser, the CLI continues to auto-open the browser as before.