From 0a2c98664c3a84636a67c75216e25853943a641f Mon Sep 17 00:00:00 2001 From: Taylor Downs Date: Thu, 18 Jun 2026 14:10:30 +0200 Subject: [PATCH 1/2] optional: nicer apollo errors for lightning users --- .../components/MessageList.tsx | 5 ++-- .../lib/AIChannelRegistry.ts | 7 +++++- .../stores/createAIAssistantStore.ts | 10 +++++++- .../types/ai-assistant.ts | 8 +++++- lib/lightning/ai_assistant/ai_assistant.ex | 5 ++++ .../ai_assistant/message_processor.ex | 25 ++++++++++++++++--- .../channels/ai_assistant_channel.ex | 6 +++-- 7 files changed, 55 insertions(+), 11 deletions(-) diff --git a/assets/js/collaborative-editor/components/MessageList.tsx b/assets/js/collaborative-editor/components/MessageList.tsx index 48e75a9fca4..3cddca7fdd9 100644 --- a/assets/js/collaborative-editor/components/MessageList.tsx +++ b/assets/js/collaborative-editor/components/MessageList.tsx @@ -652,7 +652,8 @@ export function MessageList({ > - Failed to send message. Please try again. + {message.error || + 'Failed to send message. Please try again.'} {onRetryMessage && (