Skip to content

Commit

Permalink
fix: Do not wait 5s before adding extensions to agent (#785)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhancock authored Jan 26, 2025
1 parent 9e3b2d1 commit 4404eaf
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions ui/desktop/src/utils/providerUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,9 @@ export const initializeSystem = async (provider: string, model: string) => {
console.log('initializing agent with provider', provider, 'model', model);
await addAgent(provider.toLowerCase(), model);

// TODO - Needs to be replaced with something which can interface
// with the agent to tell when it is ready to add extensions
setTimeout(() => {
window.electron.logInfo('Loading and adding stored extension configs');
loadAndAddStoredExtensions().catch((error) => {
console.error('Failed to load and add stored extension configs:', error);
});
}, 5000);
loadAndAddStoredExtensions().catch((error) => {
console.error('Failed to load and add stored extension configs:', error);
});
} catch (error) {
console.error('Failed to initialize agent:', error);
throw error;
Expand Down

0 comments on commit 4404eaf

Please sign in to comment.