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: task image attachments are click-dead — no open, enlarge, or download (PDFs on the same task open fine) #2664
Image attachments on a task can't be opened, enlarged, or downloaded. The task attachment list renders FileAttachmentDisplay without an onImageClick handler, so an image renders as a ~36px thumbnail whose click does nothing, and — unlike non-image files — images have no <a> download/open link. A PDF attached to the same task opens in a new tab, so the surface is inconsistent as well as broken. Images are explicitly allowed on tasks (TASK_UPLOAD_ALLOWED_TYPES includes JPEG/PNG/GIF/WEBP).
app/features/tasks/components/task-attachments.tsx:55-60 — renders <FileAttachmentDisplay … /> with no onImageClick.
app/features/chat/components/message-bubble/file-displays.tsx:218-233 — image branch is <button onClick={onImageClick}>; undefined prop ⇒ dead click; non-image branch (:302-326) has an <a> open/download link.
lib/shared/file-types.ts:445-448 — images are allowed task uploads.
Repro: "Getting started" project → Tasks → open/create a task → attach a PNG → click the thumbnail (nothing) → attach a PDF for contrast (opens in a new tab).
Proposed change
Pass an onImageClick (open a preview/lightbox, as chat does) and/or render an open/download link for image attachments on tasks.
Acceptance criteria
A task image attachment can be opened/enlarged and downloaded
Behaviour is consistent with non-image task attachments
Related: #2070 (closed — project files no-download; this is the distinct task-attachment surface).
Activity