chore: 移除启动时自动检测认证并跳转设置页的逻辑

This commit is contained in:
程序员阿江(Relakkes) 2026-04-15 14:43:32 +08:00
parent 5fdf50436c
commit 5016bc0049

View File

@ -27,18 +27,6 @@ export function AppShell() {
await initializeDesktopServerUrl()
await fetchSettings()
// Check auth status: if no auth at all, redirect to provider setup
try {
const authStatus = await providersApi.authStatus()
if (!authStatus.hasAuth) {
// No auth — open Settings on the providers tab
useUIStore.getState().setPendingSettingsTab('providers')
useTabStore.getState().openTab(SETTINGS_TAB_ID, 'Settings', 'settings')
}
} catch {
// auth-status check failed — continue normally
}
// Restore tabs from localStorage
await useTabStore.getState().restoreTabs()
const activeId = useTabStore.getState().activeTabId