From f625c37cce4ec971e7d86af6da644fee03561b1e Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 23 Oct 2026 11:05:01 +0900 Subject: [PATCH] refac --- .../chat/Placeholder/FolderTitle.svelte | 15 ++++++++++++++- .../layout/Sidebar/Folders/FolderModal.svelte | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Placeholder/FolderTitle.svelte b/src/lib/components/chat/Placeholder/FolderTitle.svelte index 0db4f341d5..729ed778d5 100644 --- a/src/lib/components/chat/Placeholder/FolderTitle.svelte +++ b/src/lib/components/chat/Placeholder/FolderTitle.svelte @@ -201,7 +201,11 @@ -
+
{#if readOnly}
{/if}
+ + {#if folder.data?.description} + +
+

{folder.data.description}

+
+ {/if} {/if} diff --git a/src/lib/components/layout/Sidebar/Folders/FolderModal.svelte b/src/lib/components/layout/Sidebar/Folders/FolderModal.svelte index 16469fc5bf..d5c905b391 100644 --- a/src/lib/components/layout/Sidebar/Folders/FolderModal.svelte +++ b/src/lib/components/layout/Sidebar/Folders/FolderModal.svelte @@ -33,6 +33,7 @@ background_image_url: null }; let data = { + description: '', model_ids: [] as string[], system_prompt: '', files: [] @@ -65,6 +66,7 @@ meta, // Sharing saves separately; do not overwrite its mode with the editor's snapshot. data: { + description: data.description.trim(), model_ids: data.model_ids, system_prompt: data.system_prompt, files: data.files @@ -92,6 +94,7 @@ system_prompt: '', files: [], ...folder.data, + description: folder.data?.description ?? '', model_ids: folder.data?.model_ids ?? [] }; } @@ -119,6 +122,7 @@ background_image_url: null }; data = { + description: '', model_ids: [], system_prompt: '', files: [] @@ -175,6 +179,20 @@
+
+ +