diff --git a/src/components/Settings.jsx b/src/components/Settings.jsx index 5a051e0..0f9ef24 100644 --- a/src/components/Settings.jsx +++ b/src/components/Settings.jsx @@ -357,10 +357,8 @@ function Settings({ isOpen, onClose, projects = [], initialTab = 'tools' }) { useEffect(() => { if (isOpen) { loadSettings(); - // Check CLI authentication status checkClaudeAuthStatus(); checkCursorAuthStatus(); - // Set the active tab when the modal opens setActiveTab(initialTab); } }, [isOpen, initialTab]); @@ -441,7 +439,6 @@ function Settings({ isOpen, onClose, projects = [], initialTab = 'tools' }) { } }; - // CLI Authentication status checking functions const checkClaudeAuthStatus = async () => { try { const token = localStorage.getItem('auth-token'); @@ -515,8 +512,6 @@ function Settings({ isOpen, onClose, projects = [], initialTab = 'tools' }) { }); } }; - - // Login handlers const handleClaudeLogin = () => { setLoginProvider('claude'); setSelectedProject(projects?.[0] || { name: 'default', fullPath: process.cwd() }); @@ -531,17 +526,14 @@ function Settings({ isOpen, onClose, projects = [], initialTab = 'tools' }) { const handleLoginComplete = (exitCode) => { if (exitCode === 0) { - // Login successful - refresh authentication status setSaveStatus('success'); - // Refresh auth status based on which provider was used if (loginProvider === 'claude') { checkClaudeAuthStatus(); } else if (loginProvider === 'cursor') { checkCursorAuthStatus(); } } - // Modal will close itself via the LoginModal component }; const saveSettings = () => { @@ -1128,7 +1120,6 @@ function Settings({ isOpen, onClose, projects = [], initialTab = 'tools' }) { - {/* Claude Login */}