fix(chat): make sendMessage calls fire-and-forget with error handling

This commit is contained in:
Bohdan Triapitsyn
2026-01-24 21:11:50 +02:00
parent 1720a8d6fd
commit 75f781f940
4 changed files with 39 additions and 37 deletions
@@ -494,12 +494,12 @@ export const ChatInput: React.FC<ChatInputProps> = ({ onOpenSettings, scrollToBo
...additionalParts.flatMap(p => p.attachments ?? []),
];
await sendMessage(
primaryText,
currentProviderId,
currentModelId,
currentAgentName,
primaryAttachments,
void sendMessage(
primaryText,
currentProviderId,
currentModelId,
currentAgentName,
primaryAttachments,
agentMentionName,
additionalParts.length > 0 ? additionalParts : undefined,
currentVariant