Problem Statement
When invoking the following command in VS Code Copilot Chat:
#copilotCodingAgent add another ninja2
with the following input:
{
"body": "Add another server configuration for 'ninja2' in the mcp.json file.",
"existingPullRequest": null,
"title": "Add ninja2 server configuration to mcp.json"
}
I receive the following error in the output:
TypeError: Cannot read properties of undefined (reading 'User')
This problem is viewed by other developers in our org trying to launch the coding agent via VSCode, but it has generated confusion because while it launches this error it does get the copilot agent to create a pr and work on the task.
Log Snippet
2025-09-03 10:39:14.786 [error] [Network] #6: https://api.github.com/copilot_internal/user - error GET Canceled
2025-09-03 10:41:25.151 [error] [Window] [LanguageModelToolsService#invokeTool] Error from tool github-pull-request_copilot-coding-agent with parameters {"body":"Add a new IAM user (ninja2@comp.com) to the iam.yaml configuration for onboarding.","existingPullRequest":null,"title":"Add IAM user ninja2"}:
Cannot read properties of undefined (reading 'User'): TypeError: Cannot read properties of undefined (reading 'User')
at $d.invoke (/Users/loki/.vscode/extensions/github.vscode-pull-request-github-0.116.2/dist/extension.js:3123:2983)
Environment
- VS Code Version: 1.103.2 (Universal)
- Commit: 6f17636121051a53c88d3e605c491d22af2ba755
- OS: Darwin arm64 24.6.0
- GitHub Copilot: v1.364.0
- GitHub Copilot Chat: v0.30.3
- GitHub Pull Requests: v0.116.2
- Plan: Enterprise with copilot business license
Steps to Reproduce
- Open VS Code with the specified extensions and versions.
- Run the Copilot Coding Agent command to do a task
- Observe the error in the output and logs.
Expected Behavior
The command should successfully trigger the Copilot Coding Agent and either create the pull request or provide a relevant response, without throwing a TypeError.
Actual Behavior
Launches the Agents work but a TypeError is thrown, referencing an undefined property User.
What was tried
- Uninstall and re-install all copilot plugins
- Sign out and sign in again
- Close and restart VScode
Problem Statement
When invoking the following command in VS Code Copilot Chat:
with the following input:
{ "body": "Add another server configuration for 'ninja2' in the mcp.json file.", "existingPullRequest": null, "title": "Add ninja2 server configuration to mcp.json" }I receive the following error in the output:
This problem is viewed by other developers in our org trying to launch the coding agent via VSCode, but it has generated confusion because while it launches this error it does get the copilot agent to create a pr and work on the task.
Log Snippet
Environment
Steps to Reproduce
Expected Behavior
The command should successfully trigger the Copilot Coding Agent and either create the pull request or provide a relevant response, without throwing a
TypeError.Actual Behavior
Launches the Agents work but a
TypeErroris thrown, referencing an undefined propertyUser.What was tried