refac: submit suggestion prompt by default

This commit is contained in:
Timothy Jaeryang Baek
2025-09-07 19:24:32 +04:00
parent 6dc0df2473
commit e023a98f11
3 changed files with 51 additions and 15 deletions
+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);
}
});
}
};