File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,18 @@ export const ClaudeConnectBanner = () => {
2626 const [ isDisconnectHovered , setIsDisconnectHovered ] = useState ( false )
2727 const [ isConnectHovered , setIsConnectHovered ] = useState ( false )
2828
29- // Check initial connection status
29+ // Check initial connection status and auto-open browser if not connected
3030 useEffect ( ( ) => {
3131 const status = getClaudeOAuthStatus ( )
3232 if ( status . connected ) {
3333 setFlowState ( 'connected' )
3434 } else {
35- setFlowState ( 'not-connected' )
35+ // 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+ } )
3641 }
3742 } , [ ] )
3843
You can’t perform that action at this time.
0 commit comments