authorgravatar for dominic@sdko.orgDominic Roy <dominic@sdko.org> 2026-09-07 18:32:51-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-07 22:32:51+00:00
log12f5604442564d3e8c1cb23135b27b37ab4af1cf
tree3502f50627704bbfcf0407ab371ebd49620881ac
parent5ec6f77ec0acc6a1fc9e9be5e1126a5199e9efe7
signature Signed by PGP key B5690EEEBB952194

fix(web): correct pending question attachment message (#10599)


1 files changed, 2 insertions(+), 2 deletions(-)

apps/web/src/components/chat/ChatComposer.tsx+2-2
...@@ -4182,7 +4182,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)...@@ -4182,7 +4182,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
4182 if (pendingUserInputs.length > 0) {4182 if (pendingUserInputs.length > 0) {
4183 toastManager.add({4183 toastManager.add({
4184 type: "error",4184 type: "error",
4185 title: "Attach files after answering plan questions.",4185 title: "Attach files after answering pending questions.",
4186 });4186 });
4187 return;4187 return;
4188 }4188 }
...@@ -4337,7 +4337,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)...@@ -4337,7 +4337,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
4337 // ------------------------------------------------------------------4337 // ------------------------------------------------------------------
4338 const onComposerPaste = (event: React.ClipboardEvent<HTMLElement>) => {4338 const onComposerPaste = (event: React.ClipboardEvent<HTMLElement>) => {
4339 const files = Array.from(event.clipboardData.files);4339 const files = Array.from(event.clipboardData.files);
4340 // Claimable pastes go through even when plan questions are pending or the4340 // Claimable pastes go through even when agent questions are pending or the
4341 // composer is at its attachment limit: `addComposerAttachments` surfaces4341 // composer is at its attachment limit: `addComposerAttachments` surfaces
4342 // those as a toast and a thread error. An early return here would swallow4342 // those as a toast and a thread error. An early return here would swallow
4343 // the paste with no feedback.4343 // the paste with no feedback.