Skip to content

Agent Mode fails when editing files on insert_edit_into_file with args #252442

Closed
@NateRadebaugh

Description

@NateRadebaugh
  • VS Code Version: 1.101.2
  • OS Version: Windows 11 Enterprise 23H2
  • GitHub Copilot: github.copilot 1.336.0
  • GitHub Copilot Chat: github.copilot-chat 0.28.2

Steps to Reproduce:

  1. Ask agent to create a file: success
  2. Ask agent to change the file contents: error

Reviewing the "GitHub Copilot Chat" logs show the following:

Image

I've tried:

  • Uninstalling copilot extensions
  • Log out/in
  • Run vscode as administrator

Other copilot functionality works and I'm already successfully logged in, but the insert_edit_into_file is failing with:

token expired or invalid: 403: Error: token expired or invalid: 403
at vnt.invoke (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2028:24907)
at async Ert.invokeTool (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2055:48881)
at async GXt.$invokeTool (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1264:20036)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions