Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix: align handoff preview URLs with image attachment index
Julius Marminge4c846332c5c9
diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsxindex 1b029584a..23a6c4f18 100644--- a/apps/web/src/components/ChatView.tsx+++ b/apps/web/src/components/ChatView.tsx@@ -710,8 +710,13 @@ export default function ChatView({ threadId }: ChatViewProps) {}let changed = false;- const attachments = message.attachments.map((attachment, index) => {- const handoffPreviewUrl = handoffPreviewUrls[index];+ let imageIndex = 0;+ const attachments = message.attachments.map((attachment) => {+ if (attachment.type !== "image") {+ return attachment;+ }+ const handoffPreviewUrl = handoffPreviewUrls[imageIndex];+ imageIndex += 1;if (!handoffPreviewUrl || attachment.previewUrl === handoffPreviewUrl) {return attachment;}