Skip to content

agentHost: temporarily disable retryable errors - #332839

Merged
roblourens merged 2 commits into
mainfrom
roblou/agents/disable-retryable-errors-feature
Aug 26, 2026
Merged

agentHost: temporarily disable retryable errors#332839
roblourens merged 2 commits into
mainfrom
roblou/agents/disable-retryable-errors-feature

Conversation

@roblourens

Copy link
Copy Markdown
Member

Temporarily stops marking Copilot errors as resumable, which prevents clients from offering or dispatching in-place retries. The retry protocol, reducer, and provider resume implementation remain intact so the feature can be re-enabled by restoring the flags.

Retry-specific E2E scenarios are skipped and documented while the feature is disabled. Unit and E2E expectations now verify that live, restored, interrupted, and repeated errors omit resumable.

Validation

  • npm run transpile-client
  • ./scripts/test.sh --run src/vs/platform/agentHost/test/node/copilotAgentSession.test.ts --run src/vs/platform/agentHost/test/node/mapSessionEvents.test.ts --run src/vs/platform/agentHost/test/node/agentService.test.ts
  • ./scripts/test.sh --run src/vs/platform/agentHost/test/node/copilotAgentSession.test.ts
  • ./scripts/test-integration.sh --run src/vs/platform/agentHost/test/node/e2e/providers/copilotAgentHostE2E.integrationTest.ts --grep "request error survives a host restart"

(Written by Copilot)

Stop marking Copilot errors as resumable while keeping the retry protocol and implementation available for later re-enablement. Update focused coverage and park retry-only E2E scenarios.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 26, 2026 23:07
@roblourens
roblourens enabled auto-merge (squash) August 26, 2026 23:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Temporarily disables in-place retries for Copilot errors while preserving the underlying retry implementation.

Changes:

  • Removes resumable markers from live and restored Copilot errors.
  • Makes failed continuations non-resumable.
  • Updates tests and documents skipped retry scenarios.
Show a summary per file
File Description
node/copilot/mapSessionEvents.ts Restores errors without resumability.
node/copilot/copilotAgentSession.ts Emits non-resumable Copilot errors.
node/agentSideEffects.ts Makes continuation failures non-resumable.
test/node/mapSessionEvents.test.ts Updates restoration expectations.
test/node/copilotAgentSession.test.ts Updates live-error expectations.
test/node/agentService.test.ts Tests non-resumable continuation failure.
test/node/e2e/providers/copilotAgentHostE2E.integrationTest.ts Updates restart assertions and skips retry scenarios.
test/node/e2e/KNOWN_ISSUES.md Documents the temporary disablement.

Review details

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 8/8 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread src/vs/platform/agentHost/node/copilot/copilotAgentSession.ts
Verify that a resume action for a non-resumable error is rejected before provider side effects.\n\n(Written by Copilot)\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@roblourens
roblourens merged commit fb25c93 into main Aug 26, 2026
37 checks passed
@roblourens
roblourens deleted the roblou/agents/disable-retryable-errors-feature branch August 26, 2026 23:42
@vs-code-engineering vs-code-engineering Bot added this to the 1.136.0 milestone Aug 26, 2026
roblourens added a commit that referenced this pull request Aug 28, 2026
* Revert "agentHost: temporarily disable retryable errors"

Reverts #332839 now that the retry issue is fixed.

(Written by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* agentHost: preserve non-resumable error handling

Keep subagent errors non-resumable when their parent mapping is missing, and retain dispatcher coverage for rejecting non-resumable retry requests.

(Written by Copilot)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants