Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(chat): route sidebar-rows mode default through conversationMode()

purple0c3fefad9da9
diff --git a/src/components/layout/sidebar-rows.ts b/src/components/layout/sidebar-rows.ts
index 71a9a2f7..39558ad2 100644
--- a/src/components/layout/sidebar-rows.ts
+++ b/src/components/layout/sidebar-rows.ts
@@ -10,6 +10,7 @@
* store selector hand back the identical array and React skip the render.
*/
import { formatDate } from '../../lib/formatters'
+import { conversationMode } from '../../lib/conversation-mode'
import type { Conversation } from '../../types/chat'
export interface SidebarRow {
@@ -22,7 +23,7 @@ export interface SidebarRow {
}
export function toSidebarRow(c: Conversation): SidebarRow {
- return { id: c.id, title: c.title, mode: c.mode || 'lu', date: formatDate(c.updatedAt) }
+ return { id: c.id, title: c.title, mode: conversationMode(c), date: formatDate(c.updatedAt) }
}
/** Field-wise equality over two projections. The store selector returns the