This commit is contained in:
Timothy Jaeryang Baek
2026-07-01 02:28:22 -05:00
parent 989c6c13f5
commit b6d4baeb7e

View File

@@ -209,13 +209,12 @@
checkLocalDBChats(),
setBanners().catch((e) => console.error('Failed to load banners:', e)),
setTools().catch((e) => console.error('Failed to load tools:', e)),
setUserSettings().catch((e) => console.error('Failed to load user settings:', e))
setUserSettings(async () => {
await setModels().catch((e) => console.error('Failed to load models:', e));
}).catch((e) => console.error('Failed to load user settings:', e))
]);
// Load models and tool servers in the background — don't block page render.
// These contact external services (Ollama, OpenAI, tool servers, terminal
// servers) that may be slow or unreachable.
setModels().catch((e) => console.error('Failed to load models:', e));
// Tool servers can be slow or unreachable; they are not needed to initialize chat.
setToolServers().catch((e) => console.error('Failed to load tool servers:', e));
// Helper function to check if the pressed keys match the shortcut definition