This commit is contained in:
Timothy Jaeryang Baek committed 2026-04-12 11:15:38 -05:00
1 parent 71a39dbac1
commit 36a81ad43b
1 file changed
+4
@@ -82,6 +82,7 @@
loading = true; loading = true;
if (validateCommandString(command)) { if (validateCommandString(command)) {
try {
await onSubmit({ await onSubmit({
id: prompt?.id, id: prompt?.id,
name, name,
@@ -100,6 +101,9 @@
if (history.length > 0) { if (history.length > 0) {
selectedHistoryEntry = history[0]; selectedHistoryEntry = history[0];
} }
} catch (error) {
toast.error(`${error}`);
}
} else { } else {
toast.error( toast.error(
$i18n.t('Only alphanumeric characters and hyphens are allowed in the command string.') $i18n.t('Only alphanumeric characters and hyphens are allowed in the command string.')