Agents: forked session stuck when making edits+asking question

Open
#324,083 0 comments 0 reactions 1 assignee View on GitHub

@roblourens is already working on this.

Since Jul 2, 2026.

Assessment

This issue has not been assessed yet.

Description

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:

Steps to Reproduce:

  1. After a while in a session, the agent tries to edit a file, one outside the current repo, and never responds.

I'm not sure of the steps to reproduce. Contact me on Microsoft Teams (alias nathansa) and I can dump the trajectories of the repros I have, and work with you to repro.

When I view the session in the Agents app, I see nothing at the end:

Simple fix — this one test requires real internet. I'll skip it with a note explaining why.

Applying edits
next-response.test.ts+1-61
I don't think you got permission correctly to do that. Try again, a different way, or I can do it if you tell me what to do

look just tell me what to do and I'll make the edit, then you can produce the patch for the plan file

I don't think you got permission correctly to do that. Try again, a different way, or I can do it if you tell me what to do

When I view the same session in vscode, I see a reply (I truncated it here)

Simple fix — this one test requires real internet. I'll skip it with a note explaining why.Aborted: user_initiated

I don't think you got permission correctly to do that. Try again, a different way, or I can do it if you tell me what to do

Copilot CLI
look just tell me what to do and I'll make the edit, then you can produce the patch for the plan file

Copilot CLI
I don't think you got permission correctly to do that. Try again, a different way, or I can do it if you tell me what to do

Copilot CLI
Here's the edit to make in the repo:

File: /home/USER/vercel-next.js/test/unit/web-runtime/next-response.test.ts

Change line 48 from:

to:

But before I produce a plan patch, one question —

4 likely ingredients:

  • this is on a forked session
  • editing a file outside the repo
  • while the agent is attempting to ask the user a question

#320206 is extremely similar to this bug.

Dominant language
TypeScript
Stars
193k
Forks
42.9k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode

All issues in microsoft/vscode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.