fix(tui): show prompt submission errors (#31949)

This commit is contained in:
Aiden Cline
2026-06-11 14:33:01 -05:00
committed by GitHub
parent 9eb07ab55a
commit ca8db315a9
+11 -2
View File
@@ -1086,7 +1086,8 @@ export function Prompt(props: PromptProps) {
} else {
move.startSubmit()
sdk.client.session
.prompt({
.prompt(
{
sessionID,
...selectedModel,
agent: agent.name,
@@ -1100,8 +1101,16 @@ export function Prompt(props: PromptProps) {
},
...nonTextParts,
],
},
{ throwOnError: true },
)
.catch((error) => {
toast.show({
title: "Failed to send prompt",
message: errorMessage(error),
variant: "error",
})
})
.catch(() => {})
if (editorParts.length > 0) editor.markSelectionSent()
}
history.append({