Skip to content

Bug: task image attachments are click-dead — no open, enlarge, or download (PDFs on the same task open fine) #2664

Closed

Description

@yannickmonney

Problem

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

Current behaviour

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

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

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