完善客户端模块与工作区能力
This commit is contained in:
@@ -29,6 +29,7 @@ import { useOpencodeStore } from './stores/opencode';
|
||||
import { useProjectConfigStore } from './stores/project-config';
|
||||
import { AI_MODULE_SELECTION_PATH } from './lib/ai-modules';
|
||||
import { useUserSyncStore } from './stores/user-sync';
|
||||
import { flushPendingAgentSessionSync } from '@/lib/agent-session-sync';
|
||||
import { subscribeHostEvent } from '@/lib/host-events';
|
||||
import { resolveSupportedLanguage } from '../shared/language';
|
||||
|
||||
@@ -306,7 +307,9 @@ function App() {
|
||||
if (!setupReady) return;
|
||||
if (!authInitialized) return;
|
||||
if (!authenticated) return;
|
||||
void bootstrapUserSync();
|
||||
void bootstrapUserSync().finally(() => {
|
||||
void flushPendingAgentSessionSync();
|
||||
});
|
||||
}, [authenticated, authInitialized, bootstrapUserSync, rendererOnlyPreview, setupReady]);
|
||||
|
||||
// Redirect to setup wizard if not complete
|
||||
|
||||
Reference in New Issue
Block a user