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: block image uploads during plan mode questions (#621)
(CJ) Chukwudi Nwobodoa14debc83e04
diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsxindex 798dcc9e4..64c15ba2f 100644--- a/apps/web/src/components/ChatView.tsx+++ b/apps/web/src/components/ChatView.tsx@@ -2034,6 +2034,14 @@ export default function ChatView({ threadId }: ChatViewProps) {const addComposerImages = (files: File[]) => {if (!activeThreadId || files.length === 0) return;+ if (pendingUserInputs.length > 0) {+ toastManager.add({+ type: "error",+ title: "Attach images after answering plan questions.",+ });+ return;+ }+const nextImages: ComposerImageAttachment[] = [];let nextImageCount = composerImagesRef.current.length;let error: string | null = null;