This commit is contained in:
Timothy Jaeryang Baek 2025-07-07 19:33:54 +04:00
parent a5367145bf
commit 67063e6400
2 changed files with 4 additions and 4 deletions

View file

@ -91,6 +91,7 @@
};
let files = [];
let messages = [];
let versionIdx = null;
let selectedModelId = null;
@ -1033,7 +1034,7 @@ Provide the enhanced notes in markdown format. Use markdown syntax for headings,
</Pane>
<NotePanel bind:show={showPanel}>
{#if selectedPanel === 'chat'}
<Chat bind:show={showPanel} bind:selectedModelId />
<Chat bind:show={showPanel} bind:selectedModelId bind:messages />
{:else if selectedPanel === 'settings'}
<Settings bind:show={showPanel} bind:selectedModelId />
{/if}

View file

@ -26,6 +26,8 @@
const i18n = getContext('i18n');
export let messages = [];
let loaded = false;
let loading = false;
@ -35,9 +37,6 @@
let messagesContainerElement: HTMLDivElement;
let system = '';
let content = '';
let messages = [];
let chatInputElement = null;
const scrollToBottom = () => {