-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Problem (one or two sentences)
The OAuth flow uses a hardcoded localhost redirect URI which breaks authentication in remote environments like GitHub Codespaces.
Cause: In src/integrations/claude-code/oauth.ts:12: redirectUri: "http://localhost:54545/callback",
Solution: Use VS Code's vscode.env.asExternalUri() API to dynamically generate the redirect URI.
Context (who is affected and when)
This happens when users in remote environments like github codespaces try to authenticate with claude code
Reproduction steps
create a github codespace, install roo and claude code cli - then try to sign in to claude code
Expected result
I am able to login by alternatively entering a code similar to claude code which has a workaround for this
Actual result
I am not able to authenticate and always alnd on a 404 webpage when trying to (the localhost return redirect)
Variations tried (optional)
No response
App Version
3.38.3
API Provider (optional)
Anthropic
Model Used (optional)
Claude Code
Roo Code Task Links (optional)
No response
Relevant logs or errors (optional)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status