[Bug]: Images in Azure DevOps work item descriptions show "Image unavailable" on the Issues page

Đang mở
#39,723 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@juliusmarminge đang làm issue này rồi.

Từ ngày 20/11/2026.

  • #39741 của @juliusmarminge — đang mở

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
azure, typescript
Lĩnh vực
backend, desktop

Hướng nghiên cứu

The issue identifies apps/server and the Azure DevOps work item attachment URL under /_apis/wit/attachments/. Start by tracing how read_issue loads the description and how the existing pull request attachment handling authenticates image requests. Done means pasted work item images display on the Issues page using the available Azure DevOps credential; an open linked pull request shows work is already underway.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Before submitting
  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.
Area

apps/server

Steps to reproduce
  1. In a private Azure DevOps project, create a work item and paste a screenshot into its Description.
  2. Add a local repository whose origin is an Azure Repos URL in that project.
  3. Open Issues and open the work item.
Expected behavior

The pasted image shows in the description.

Actual behavior

Each image shows an "Image unavailable · Image" card.

The body read_issue returns is HTML whose images point at the work item attachment endpoint:

<img src="https://<org>.visualstudio.com/<project-guid>/_apis/wit/attachments/<attachment-guid>?fileName=image.png" alt=Image>

That endpoint answers only a request that carries an Azure DevOps credential. The client loads the URL directly, without one, so the load fails. The environment does have the credential: the same work item's text loads through az.

Related, but not the same URL or surface:

  • #36148 (open) authenticates Azure DevOps pull request attachments. Its matcher accepts only /_apis/git/repositories/<id>/pullRequests/<n>/attachments/<name>, and its comment says "Only pull request attachments may be fetched". Work item attachments under /_apis/wit/attachments/<guid> are not covered.
  • #21014, #25922, #19828 and #39085 report the same symptom for GitHub, Bitbucket and Linear.
Impact

Major degradation or frequent failure

Work items that explain a problem with screenshots lose them, for the user and for an agent that is handed the work item.

Version or commit

0.1.11 (desktop)

Environment

macOS 26.5.2, T3 Code desktop 0.1.11, azure-cli 2.90.0, azure-devops extension 1.0.4, Azure DevOps Services on a *.visualstudio.com organisation

Workaround

Open the work item in Azure DevOps.

Ngôn ngữ chính
TypeScript
Star
24.8k
Fork
6.4k
Merge trung bình
4 giờ 29 phút
Pull request đã merge (30 ngày)
488

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pingdotgg/t3code

Tất cả issue của pingdotgg/t3code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.