authorgravatar for 142016413+chuks-qua@users.noreply.github.com(CJ) Chukwudi Nwobodo <142016413+chuks-qua@users.noreply.github.com> 2026-03-13 00:24:53+00:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-03-12 17:24:53-07:00
loga14debc83e04ee4b28d9e3eb830f0cf74d489f93
treeaf1f4bc0dd854268f24cc78250a32aa1cc695167
parent71a7473a81c75a70bef55844a410e5d7f1e5de10
signature Signed by PGP key B5690EEEBB952194

fix: block image uploads during plan mode questions (#621)


1 files changed, 8 insertions(+), 0 deletions(-)

apps/web/src/components/ChatView.tsx+8
...@@ -2034,6 +2034,14 @@ export default function ChatView({ threadId }: ChatViewProps) {...@@ -2034,6 +2034,14 @@ export default function ChatView({ threadId }: ChatViewProps) {
2034 const addComposerImages = (files: File[]) => {2034 const addComposerImages = (files: File[]) => {
2035 if (!activeThreadId || files.length === 0) return;2035 if (!activeThreadId || files.length === 0) return;
20362036
2037 if (pendingUserInputs.length > 0) {
2038 toastManager.add({
2039 type: "error",
2040 title: "Attach images after answering plan questions.",
2041 });
2042 return;
2043 }
2044
2037 const nextImages: ComposerImageAttachment[] = [];2045 const nextImages: ComposerImageAttachment[] = [];
2038 let nextImageCount = composerImagesRef.current.length;2046 let nextImageCount = composerImagesRef.current.length;
2039 let error: string | null = null;2047 let error: string | null = null;