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

未关闭
#39,723 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@juliusmarminge 已经在做这个了。

开始于 2026年11月20日。

  • #39741 来自 @juliusmarminge —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
停滞
技术栈
azure, typescript
领域
backend, desktop

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
TypeScript
星标
24.8k
派生
6.4k
平均合并
4 小时 29 分钟
30 天内合并 PR
488

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pingdotgg/t3code 的其他 Issue

查看 pingdotgg/t3code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。