Why does copilot stop in the middle of the work? #169714
Replies: 15 comments 2 replies
-
Copilot Stopping Mid-Work in Visual StudioHi @Rand-Random, thanks for reporting this! From your description and screenshot, it appears that GitHub Copilot’s inline chat in Visual Studio is pausing to ask for confirmation (“Was this helpful?”) before continuing. This usually happens when:
Possible Fixes
Additional Information NeededIf the problem persists, please share:
This will help determine if it’s a bug or an intended interaction flow that needs improvement. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
@Rand-Random, This usually happens with large codebases, I ran into the same issue while using Copilot (as a paid user). I solved it by manually tagging the files instead of letting Copilot select them automatically. You can do this by including file names in the chat using Alternatively, you could try using Gemini instead of OpenAI, since Gemini supports larger contexts. However, I believe the ability to switch models might only be available in their paid version (though I’m not entirely sure). |
Beta Was this translation helpful? Give feedback.
-
|
@rabbit-ninja it was my guess that it is some sort of rate-limit mechanism, but IMHO if that were the case it should just sleep to decrease the amount of requests and continue with the task without user interaction, to be always on the edge and waiting for this feedback message is kinda annoying one task which took ~30 minutes to complete (had to process many files), I was aked ~10 times |
Beta Was this translation helpful? Give feedback.
-
|
after only a few minutes of work (maybe 5) here my prompt and the full context of the work and it just stops, and I need to prompt "done?" and it will continue as if nothing happened edit: @Sharan-Kumar-R just in case you didn't get my previous respond |
Beta Was this translation helpful? Give feedback.
-
|
there may be multiple possibilities Solution: Check your network. Restart VS Code or your IDE. Try again after some time. |
Beta Was this translation helpful? Give feedback.
-
|
@NaeeemAbbas you said "Copilot uses the OpenAI API behind the scenes" - I am using clauda sonnet 4 - how would I know which limit applies to me if any?
I would hope that copilot respects the limits and reads the retry-after correctly and would automatically retry it. Or at the very least give any form of feedback, currently there is no message, no exception, just nothing except for the frustrating part that it stops.
as I said a simple "done?" or "continue" is enough to trigger it to continue the task, and I dont even need to wait any amount of time, I can type it instantly after the stop and it will continue
internet is stable on my side. full duplex business internet there should be no issue.
isnt there a logging anywhere to figure out the issue?
Since I am not inline chat, but rather the chat window, I sure hope that no extension of mine is messing around with a random window. |
Beta Was this translation helpful? Give feedback.
-
|
Copilot can sometimes stop mid-suggestion for a few reasons: Context limit → It only looks at a certain number of lines/tokens, so long files or prompts may cause it to cut off. Incomplete intent → If your comment or code isn’t specific enough, Copilot may generate part of an answer and stop. Server or network hiccups → Occasionally, requests time out before the full response is delivered. Editor integration → Some IDEs (VS Code, JetBrains) may show partial completions if Copilot decides the suggestion is “done.” To reduce this: try breaking tasks into smaller steps, give clearer prompts (comments), and make sure your editor + Copilot extension are up to date. If it still happens often, you can report it directly to GitHub Support. |
Beta Was this translation helpful? Give feedback.
-
|
I think Visual Studio is missing this setting ( available in VS Code): Agent: Max Requests If anyone can figure out if it can be set elsewhere please share, I've searched the registry and found nothing. The behavior should be as long as you have tokens in your account it should finish the task that was given to it. |
Beta Was this translation helpful? Give feedback.
-
|
@pedro-salgueiro I did a simple test, with a IMHO simple prompt
and it stops after creating about 20 to 25 files, it isnt always the same amount of files
since it may be related to visual studio, I created this issue: https://developercommunity.visualstudio.com/t/Why-does-copilot-stop-in-the-middle-of-t/10958679 in the next couple of hours I will try if the same issue does happen with different AI Provider, as I said earlier currently using Claude Sonnet 4 edit:
as to not get a powershell script which tried to generate all files with guids in 1 step also tried to use gemini 2.5 pro, but I am facing performance issue and it keeps stuck again and again, so maybe I give it some other day a try |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Running into the same problem here, on the latest release version of Visual Studio 2026 with a Copilot Pro (paid) plan subscription. The behavior doesn't appear to be model-specific; I mostly used Claude Sonnet 4.5, but also tried Claude Opus 4.5 for 30-60 minutes, & I constantly had to tell it to continue in both cases. If it's a rate-limiting problem, then it's definitely a bug because there's no error message reporting it as such. And FWIW I got a legitimate rate-limited error message last night when I exceeded the burst message threshold. After waiting an hour before retrying, that problem went away; this other problem with having to constantly tell the agent "Continue" has been occurring for at least a day now. |
Beta Was this translation helpful? Give feedback.
-
|
It seems like sometimes when subagents ask for permission, nothing is written in the chat. Clicking the arrow to expand the subagent's work shows its initial message and nothing more. Only when I back out to the agent sessions list (which btw. defaulted to hiding "read" chats so it looked empty) and reopen the chat I get the full subagent history and the question it's waiting for. |
Beta Was this translation helpful? Give feedback.
-
|
Hello 👋 This occurs typically due to the fact that Copilot splits your request into several steps or fails to retain the context during work, particularly in large-scale projects. Reasons 📢
Possible Fixes 💻
Caveat 🛑The current behavior of Copilot isn't entirely a bug but a known feature; sometimes, Copilot will pause and wait for user input. |
Beta Was this translation helpful? Give feedback.
-
|
@pedro-salgueiro identified the actual cause earlier in the thread. In VS Code, there's a setting called "Agent: Max Requests" ( The problem: Visual Studio doesn't expose this setting. No registry key, no options panel entry. The Copilot agent in Visual Studio is still behind VS Code in configurability. Your 150-file test confirms it's not rate limiting. A rate limit would give you an error message or a retry delay. The fact that typing "continue" immediately resumes the work with no wait proves the model is perfectly fine, it's just hitting the per-turn request cap. For now, the realistic workarounds:
On GPT-5 completing the 150-file task where Claude Sonnet didn't: probably comes down to how the two models handle agent planning and batching operations, not a fundamental capability difference. Worth trying a prompt that explicitly tells the agent to group file creation into batches rather than handling files one at a time. |
Beta Was this translation helpful? Give feedback.









Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Copilot Feature Area
General
Body
As you can see in the screenshot below (from Visual Studios Copilot integration)

it just stops and asks me if it was helpful and again and again I have to trigger to continue to do its job by asking "done?" or similar.
Beta Was this translation helpful? Give feedback.
All reactions