refac: suggestion prompts

This commit is contained in:
Timothy Jaeryang Baek committed 2025-07-04 23:40:31 +04:00
1 parent db0d2ae6d4
commit 198b89faa5
7 files changed
+32 -64

No files matched your search

+11
View File
@@ -193,6 +193,15 @@
}
};
const onSelect = async (e) => {
const { type, data } = e;
if (type === 'prompt') {
// Handle prompt selection
messageInput?.setText(data);
}
};
$: if (selectedModels && chatIdProp !== '') {
saveSessionSelectedModels();
}
@@ -2117,6 +2126,7 @@
{chatActionHandler}
{addMessages}
bottomPadding={files.length > 0}
{onSelect}
/>
</div>
</div>
@@ -2202,6 +2212,7 @@
toolServers={$toolServers}
{stopResponse}
{createMessagePair}
{onSelect}
on:upload={async (e) => {
const { type, data } = e.detail;