Claude not respecting BROWSER= env on login?
We use Claude inside a linux Docker container. When we login, opening the browser fails, and we have to manually paste in the url and then paste back the key.
That's fine, and understandable given there is no browser in our container.
However...
For other apps we have automatic tooling that can forward the login url and pass back the key in Oauth2 contexts. It seems like the only thing preventing this from working in claude-code is that it doesn't seem to respect the BROWSER env parameter which is what tools like open xdg-open etc use to figure out which browser to open.
Could this be as simple as the node spawn process in claude-code isn't passing that env variable in when Claude launches? In any event, was hoping maybe this was a simple fix to get claude-code to respect the BROWSER env variable.