Skip to content

Bug: shared-chat composer silently drops attachments; attachment-only send is a dead no-op #2663

Closed

Description

@yannickmonney

Problem

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.

Current behaviour

Code-grounded (2026-07-11, main @ 94ef84e):

  • 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).

Code pointers

  • app/features/chat/components/shared-chat-view.tsx:100-127
  • convex/threads/fork_and_chat.ts:17-29

Proposed change

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions