The best way to control Claude Code, Codex and more from any computer or phone
fix: block image uploads during plan mode questions (#621)
(CJ) Chukwudi Nwobodo committed
Mar 13, 2026 at 00:24 UTC
a14debc83e04ee4b28d9e3eb830f0cf74d489f93
1 file changed
+8
apps/web/src/components/ChatView.tsx
+8
@@ -2034,6 +2034,14 @@ export default function ChatView({ threadId }: ChatViewProps) {
2034
const addComposerImages = (files: File[]) => {
2035
if (!activeThreadId || files.length === 0) return;
2036
2037
+ if (pendingUserInputs.length > 0) {
2038
+ toastManager.add({
2039
+ type: "error",
2040
+ title: "Attach images after answering plan questions.",
2041
+ });
2042
+ return;
2043
+ }
2044
+
2045
const nextImages: ComposerImageAttachment[] = [];
2046
let nextImageCount = composerImagesRef.current.length;
2047
let error: string | null = null;