diff --git a/src/lang/en.ts b/src/lang/en.ts
index 8a353120..9ca9dbdc 100644
--- a/src/lang/en.ts
+++ b/src/lang/en.ts
@@ -175,7 +175,7 @@ export const languageEnglish = {
legacyMediaFindings: "If enabled, it will use the old method to find media assets, without using the additional search algorithm.",
comfyWorkflow: "Put the API workflow of comfy UI. you can get your API workflow in comfy UI by pressing the 'Workflow > Export (API)' button. you must also put {{risu_prompt}} in you workflow text. the {{risu_prompt}} will be replaced with the prompt provided by the Risu.",
automaticCachePoint: "Automatically creates cache point after the chat ends, if the caching point doesn't exist.",
- experimentalChatCompressionDesc: "Compresses the unused chat data and saves in seperate file.",
+ experimentalChatCompressionDesc: "Compresses the unused chat data and saves in seperate file. this greatly reduces the size of the chat data, and greatly improves the performance, however its experimental and can be unstable, causing issues in backup feature and more.",
},
setup: {
chooseProvider: "Choose AI Provider",
@@ -1070,5 +1070,6 @@ export const languageEnglish = {
claudeCachingRetrival: "Claude Caching Retrival",
claudeCachingRetrivalDesc: "Extends the cache time for Claude Caching, by requesting every 4 minutes. this can reduce the cache miss rate, but it can increase the cost if its not used properly.",
automaticCachePoint: "Automatic Cache Point",
- experimentalChatCompression: "Experimental Chat Data Handling"
+ experimentalChatCompression: "Experimental Chat Data Handling",
+ loadingChatData: "Loading Chat Data",
}
diff --git a/src/lib/ChatScreens/DefaultChatScreen.svelte b/src/lib/ChatScreens/DefaultChatScreen.svelte
index 991d9410..c6bb3834 100644
--- a/src/lib/ChatScreens/DefaultChatScreen.svelte
+++ b/src/lib/ChatScreens/DefaultChatScreen.svelte
@@ -28,6 +28,7 @@
import { getInlayAsset } from 'src/ts/process/files/inlays';
import PlaygroundMenu from '../Playground/PlaygroundMenu.svelte';
import { ConnectionOpenStore } from 'src/ts/sync/multiuser';
+ import { coldStorageHeader, preLoadChat } from 'src/ts/process/coldstorage.svelte';
let messageInput:string = $state('')
let messageInputTranslate:string = $state('')
@@ -639,6 +640,15 @@
)} {send}/>
{/if}
+ {#if DBState.db.characters[$selectedCharID].chats[DBState.db.characters[$selectedCharID].chatPage].message?.[0]?.data?.startsWith(coldStorageHeader) }
+ {#await preLoadChat($selectedCharID, DBState.db.characters[$selectedCharID].chatPage)}
+