You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: shared-chat composer silently drops attachments; attachment-only send is a dead no-op #2663
On a shared chat view, the composer accepts file attachments but the send path ignores them: handleSendMessage(message, _attachments) drops the files, and the underlying forkAndChat has no file argument. Because the text guard is !message.trim(), an attachment-only send (a file with no typed text) hits the empty-text no-op — the chip disappears, no fork/message is created, and no error or toast is shown.
app/features/chat/components/shared-chat-view.tsx:100-127 — handleSendMessage(message, _attachments) ignores _attachments; on empty text it returns silently.
convex/threads/fork_and_chat.ts:17-29 — forkAndChat takes no attachments.
Repro: open a share link → attach a file, leave the text empty → Send → the chip vanishes, nothing happens (no fork, no message, no toast).
Either thread attachments through forkAndChat so a shared-view send carries its files, or — if attachments aren't supported on shared views — disable the attach affordance there and block attachment-only sends with visible feedback.
Acceptance criteria
A shared-view send either includes its attachments or the attach control is disabled with a reason
Attachment-only send never silently no-ops; the user gets feedback
Activity