Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: update rag_ids not saving to local store (#7028)
Richard Shiue5cd2c63320b9
diff --git a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/desktop_ai_prompt_input.dart b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/desktop_ai_prompt_input.dartindex 99e49c92b2..98f3e805b3 100644--- a/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/desktop_ai_prompt_input.dart+++ b/frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/desktop_ai_prompt_input.dart@@ -592,7 +592,7 @@ class _PromptBottomActions extends StatelessWidget {Widget _sendButton() {return PromptInputSendButton(- buttonSize: DesktopAIPromptSizes.actionBarButtonSize,+ buttonSize: DesktopAIPromptSizes.actionBarHeight,iconSize: DesktopAIPromptSizes.sendButtonSize,state: sendButtonState,onSendPressed: onSendPressed,diff --git a/frontend/rust-lib/flowy-ai/src/ai_manager.rs b/frontend/rust-lib/flowy-ai/src/ai_manager.rsindex 6f2dc61a65..d2f82f6e0f 100644--- a/frontend/rust-lib/flowy-ai/src/ai_manager.rs+++ b/frontend/rust-lib/flowy-ai/src/ai_manager.rs@@ -376,6 +376,23 @@ impl AIManager {.update_chat_settings(&workspace_id, chat_id, update_setting).await?;+ let chat_setting_store_key = setting_store_key(chat_id);++ if let Some(settings) = self+ .store_preferences+ .get_object::<ChatSettings>(&chat_setting_store_key)+ {+ if let Err(err) = self.store_preferences.set_object(+ &chat_setting_store_key,+ &ChatSettings {+ rag_ids: rag_ids.clone(),+ ..settings+ },+ ) {+ error!("failed to set chat settings: {}", err);+ }+ }+let user_service = self.user_service.clone();let external_service = self.external_service.clone();tokio::spawn(async move {