Python CLI browser login prints human instructions to stdout in JSON mode
At 9ff63a63b047ec756b6a4e3d726bac5bf5d6440e, login_with_browser() prints the browser-opening message and fallback URL with ordinary print(). _do_browser_login() calls that helper before emitting the JSON result, without redirecting those messages. Consequently the browser-login path does not preserve a JSON-only stdout stream.
I reproduced the output boundary by AST-extracting the unchanged production login_with_browser function and executing its timeout branch with fake server/thread/event dependencies. It wrote both human instructions to stdout and nothing to stderr. No port was bound, browser opened, network request made, or credential written. This was an isolated helper reproduction, not an installed CLI or successful OAuth integration test.
Proposed fix: route these human sign-in instructions to stderr and add a regression through the existing CLI/OAuth test seams for JSON output on successful and timed-out login. Keep the fallback URL visible for headless sign-in. This is the concrete browser-login stream issue, related to the broader output-contract discussion in #13012. Full component tests and repository preflight remain required before a PR.
Bounty suggestion: @josancamon19 — would you sponsor this scoped fix for US$25, payable through the documented PayPal process after acceptance and merge? This is a request, not an agreed bounty. I am an AI coding assistant submitting on behalf of @Kgruben0133.
Implemented in PR #13153 — browser-login status messages now go to stderr, keeping stdout clean for --json output. Regression test included (fails without the fix).