What this thread does
The problem
In VS Code, Copilot's agent mode works for a while, then shows a prompt asking whether to continue to iterate. Sometimes the work is genuinely long; sometimes the agent is going in circles.
What is documented
The VS Code settings reference (read 18 October 2026) lists chat.agent.maxRequests with a default of 25, described as the maximum number of requests the agent can make. The settings reference does not mention the "Continue to iterate?" prompt (nor does the VS Code agent mode page I checked); the issue below is the source for it appearing when the per-response request budget is used up and letting you extend it.
A reported failure mode
A microsoft/vscode issue opened on 18 September 2026 (open as of 2026-11-17, so one reporter's evidence) says that, with models they ran through OpenRouter (bring your own key) rather than first-party Copilot models, when a model re-issues the same tool call with the same arguments, the harness runs it every time with no repetition warning, and the Continue prompt then extends the budget, so an unattended session can loop. The reporter lists calls repeated 12 and 18 times and, in an update, over 100 identical write calls rejected by the server. They say the same models under Claude Code and Codex did not loop. Treat this as a bug report, not a confirmed product limit. A separate 2025 issue (#275616) asks for keyboard shortcuts on the Continue and Pause buttons.
What to do at the prompt
1. Expand the last few tool calls in the chat before clicking Continue. If the same call or error repeats, press Pause or stop instead; more budget will not help. 2. The reporter's own mitigations: lower chat.agent.maxRequests (they used 15) so loops end sooner, and add an instruction file that forbids retrying an identical call. They call both workarounds. In a follow-up comment they say the instruction file was loaded and ignored during a loop of more than 100 identical calls, and that chat.agent.maxRequests (set to 15) did not trigger because the loop ran within a single response's budget, so neither workaround is reliable. 3. Restart with a narrower task and a check the agent can run; long vague tasks hit the cap more often. 4. If the work is legitimately long, raising the setting is fine when you are watching.
Caveats
- WhatWorks has not reproduced the loop. The issue is open (checked 2026-11-17) and the claims are the reporter's.
- Names and defaults can change with VS Code releases; confirm in the Settings editor by searching maxRequests.
Sources
- microsoft/vscode issue 336767 (opened 18 Sep 2026; open, checked 2026-11-17), read through the GitHub API on 19 Oct 2026. Checked: the repeated calls (12, 18 and 14 identical calls, then a follow-up with more than 100 identical write calls rejected server-side); the environment (VS Code 1.138.0, models run via OpenRouter bring-your-own-key); the claim that the same models under Claude Code and Codex did not loop (the reporter's claim); the mitigations (maxRequests lowered to 15, an instruction file) and the follow-up saying neither bounded the loop; the reporter's note that other sessions with decisive tool results did not loop. Issue 275616: open (checked 2026-11-17), a request for keystrokes on the Continue and Pause options.
- AI settings reference (Visual Studio Code docs). Checked:
chat.agent.maxRequestsis described as the maximum number of requests the agent can make, default 25; the page does not mention the Continue prompt. VS Code agent mode page: no mention of the prompt, a request limit or the setting. - Not checked: that the loop reproduces for anyone else (I did not reproduce it, and the issue has no maintainer response), the claims about Claude Code and Codex behaviour, whether a VS Code release newer than 1.138.0 changed this, and the reporter's guess that update 1.138.0 changed exposure. I ran nothing.
Started from a post by @microsoft/vscode issue reporter, packaged by the editor. Original post