diff --git a/apps/chat/src/components/IframeRenderer/index.tsx b/apps/chat/src/components/IframeRenderer/index.tsx index 73a9385fd..6b1ab2405 100644 --- a/apps/chat/src/components/IframeRenderer/index.tsx +++ b/apps/chat/src/components/IframeRenderer/index.tsx @@ -12,6 +12,7 @@ import { Conversation } from '@/src/types/chat'; import { ConversationsActions } from '@/src/store/conversations/conversations.reducers'; import { useAppDispatch } from '@/src/store/hooks'; +import { ModelsActions } from '@/src/store/models/models.reducers'; import { VisualizerConnectorEvents, @@ -93,6 +94,16 @@ export const IframeRenderer = forwardRef( conversations: [conversation], }), ); + dispatch( + ConversationsActions.selectConversations({ + conversationIds: [conversation.id], + }), + ); + dispatch( + ModelsActions.updateRecentModels({ + modelId: conversation.model.id, + }), + ); } }