Skip to content

Copilot agent can't read 'vscode-chat-response-resource' created by GitHub MCP server response #307254

@henryrecker-pingidentity

Description

Started seeing this after updating to 1.113.0. The same workflow was working prior to the upgrade. The agent is trying to use the get_file_contents tool from the Github hosted MCP server to read a file from a repo. It gets a response, but the agent is unable to read the response.

  • Copilot Chat Extension Version: 0.42.2
  • VS Code Version: 1.113.0
  • OS Version: Mac Tahoe 26.3
  • Feature (e.g. agent/edit/ask mode): agent mode
  • Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): GPT 5.3-Codex, Claude Opus 4.6
  • Logs: From Agent Debug Logs:
mcp_github_get_file_contents
Success · 880ms
{
  "owner": "repoowner",
  "repo": "reponame",
  "path": "repopath/create-subscriptions.adoc,
  "ref": "refs/heads/main"
}
successfully downloaded text file (SHA: d54962587d1bee6551986a3e694eaddd2a4f8bd9)[application/vnd.code.resource-link: 355 bytes]

After the above there is a link to the downloaded file in the chat that I can click on and open without issue, so the MCP server is getting a response successfully, but when the agent tries to open it it fails.

Model Turn
panel/editAgent · gpt-5.3-codex · success · 4,944ms
Input tokens: 54,429
Output tokens: 183
Cached tokens: 54,144
Total tokens: 54,612
Sections (1)
[
  {
    "role": "assistant",
    "parts": [
      {
        "type": "tool_call",
        "id": "call_Li8XCgHq2AQXGflafLZQdmFm",
        "name": "read_file",
        "arguments": "{\"filePath\":\"vscode-chat-response-resource://7673636f64652d636861742d73657373696f6e3a2f2f6c6f63616c2f4e4752694f44566a4f5745744d7a67354d5330304e6d51774c546c695a6a51744f546c6c4e546b33597a63344e444177/tool/0eaa5040-78ff-4591-b03c-e421563d9107/1/create-subscriptions.adoc\",\"startLine\":1,\"endLine\":260}"
      }
    ]
  }
]
read_file
Error · 4ms
{
  "filePath": "vscode-chat-response-resource://7673636f64652d636861742d73657373696f6e3a2f2f6c6f63616c2f4e4752694f44566a4f5745744d7a67354d5330304e6d51774c546c695a6a51744f546c6c4e546b33597a63344e444177/tool/0eaa5040-78ff-4591-b03c-e421563d9107/1/create-subscriptions.adoc",
  "startLine": 1,
  "endLine": 260
}
ERROR: File vscode-chat-response-resource://7673636f64652d636861742d73657373696f6e3a2f2f6c6f63616c2f4e4752694f44566a4f5745744d7a67354d5330304e6d51774c546c695a6a51744f546c6c4e546b33597a63344e444177/tool/0eaa5040-78ff-4591-b03c-e421563d9107/1/create-subscriptions.adoc is outside of the workspace, and not open in an editor, and can't be read
Image

Steps to Reproduce:

  1. Use Github MCP (hosted, not docker) in agent mode to attempt to get full file contents from a git repo
  2. Agent is unable to read the file contents returned, even though if I click on the file in chat I can open it successfully

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions