@overmap-ai/core 1.0.53-add-agent-conversations.18 → 1.0.53-add-agent-conversations.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6737,9 +6737,14 @@ class MainService extends BaseApiService {
6737
6737
  store.dispatch(addOrReplaceProjects(projects));
6738
6738
  store.dispatch(addOrReplaceWorkspaces(workspaces));
6739
6739
  }
6740
- await this.client.projectFiles.refreshStore();
6741
- store.dispatch(setIsFetchingInitialData(false));
6742
- if (currentProjectId) {
6740
+ if (!currentProjectId) {
6741
+ store.dispatch(setIsFetchingInitialData(false));
6742
+ } else {
6743
+ try {
6744
+ await this.client.projectFiles.refreshStore();
6745
+ } finally {
6746
+ store.dispatch(setIsFetchingInitialData(false));
6747
+ }
6743
6748
  void this.client.componentTypes.refreshStore();
6744
6749
  void this.client.componentStages.refreshStore();
6745
6750
  void this.client.components.refreshStore();
@@ -8439,12 +8444,11 @@ class AgentService extends BaseApiService {
8439
8444
  tiptap_content: [...conversation.tiptap_content || [], response.response]
8440
8445
  })
8441
8446
  );
8442
- return response.response;
8443
8447
  }
8444
8448
  throw new Error("Unexpected response from agent");
8445
8449
  });
8446
8450
  }
8447
- async get(conversationId) {
8451
+ async fetchDetails(conversationId) {
8448
8452
  return this.enqueueRequest({
8449
8453
  description: "Get agent conversation",
8450
8454
  method: HttpMethod.GET,
@@ -8453,7 +8457,6 @@ class AgentService extends BaseApiService {
8453
8457
  blocks: ["conversation"]
8454
8458
  }).then((response) => {
8455
8459
  this.client.store.dispatch(setConversation(response));
8456
- return response;
8457
8460
  });
8458
8461
  }
8459
8462
  async rate(responseId, rating) {