119 words
1 minutes
How to Fix Copilot Agent Mode Stopping Mid-Task

The Problem#

You asked Copilot Agent Mode to handle a complex task, but it stopped mid-way with a “maximum requests reached” message.

The task was almost done, and having to click “Continue” every time is frustrating.

The Solution#

The chat.agent.maxRequests setting lets you change the maximum number of requests Agent Mode can make per session.

How to Configure#

  1. Open Settings with Ctrl + ,
  2. Search for chat agent maxRequests
  3. Change the number in “Chat > Agent: Max Requests”

Example settings.json#

{
  "chat.agent.maxRequests": 50
}

The default is 25. For complex tasks, increasing it to 50–100 helps Agent Mode complete without interruption.

NOTE

Setting the limit too high may result in unintended large-scale changes. Start with 50 and adjust as needed.

Summary#

Increase chat.agent.maxRequests to let Agent Mode work through complex tasks without stopping prematurely.

How to Fix Copilot Agent Mode Stopping Mid-Task
https://naonao-na.com/en/posts/vscode-copilot-setting-agent-max-requests/
Author
[object Object]
Published at
2026-04-04