refac: submit suggestion prompt by default

This commit is contained in:
Timothy Jaeryang Baek committed 2025-09-07 19:24:32 +04:00
1 parent 6dc0df2473
commit e023a98f11
3 files changed
+51 -15

No files matched your search

+6 -1
View File
@@ -202,7 +202,12 @@
if (type === 'prompt') {
// Handle prompt selection
messageInput?.setText(data);
messageInput?.setText(data, async () => {
if (!($settings?.insertSuggestionPrompt ?? false)) {
await tick();
submitPrompt(prompt);
}
});
}
};