We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 751ca99 commit 6c588e1Copy full SHA for 6c588e1
1 file changed
cli/src/components/claude-connect-banner.tsx
@@ -26,13 +26,18 @@ export const ClaudeConnectBanner = () => {
26
const [isDisconnectHovered, setIsDisconnectHovered] = useState(false)
27
const [isConnectHovered, setIsConnectHovered] = useState(false)
28
29
- // Check initial connection status
+ // Check initial connection status and auto-open browser if not connected
30
useEffect(() => {
31
const status = getClaudeOAuthStatus()
32
if (status.connected) {
33
setFlowState('connected')
34
} else {
35
- setFlowState('not-connected')
+ // Automatically start OAuth flow when not connected
36
+ setFlowState('waiting-for-code')
37
+ openOAuthInBrowser().catch((err) => {
38
+ setError(err instanceof Error ? err.message : 'Failed to open browser')
39
+ setFlowState('error')
40
+ })
41
}
42
}, [])
43
0 commit comments