refac: suggestion prompts

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

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;