Repository navigation
agentHost: isolate persisted state after E2E failures - #337201
Merged
Dmitriy Vasyura (dmitrivMS) merged 1 commit intoSep 22, 2026
Merged
Dmitriy Vasyura (dmitrivMS) merged 1 commit into
Dmitriy Vasyura (dmitrivMS) merged 1 commit into
Conversation
Give the next test fresh provider and host state after a failed test or cleanup, preventing undisposed sessions from contaminating later session-list assertions. Preserve normal shared-server reuse and intentional restart persistence, and remove retired homes at suite teardown. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The lifecycle changes consistently isolate failed-test state without affecting intentional restart persistence.
Review effort: Balanced
Findings: None
What changed in this PR
Isolates Agent Host E2E persisted state after failures while preserving normal shared-server persistence.
Changes:
- Rotates home, user-data, and Codex directories after test or cleanup failures.
- Retains retired directories until suite teardown.
- Documents the updated lifecycle behavior.
| File | Description |
|---|---|
README.md |
Documents failure isolation and directory retention. |
agentHostE2ETestHarness.ts |
Implements directory rotation and cleanup. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Dmitriy Vasyura (dmitrivMS)
marked this pull request as ready for review
September 22, 2026 04:27
Dmitriy Vasyura (dmitrivMS)
enabled auto-merge (squash)
September 22, 2026 04:27
Sandeep Somavarapu (sandy081)
approved these changes
Sep 22, 2026
Dmitriy Vasyura (dmitrivMS)
deleted the
agents/vscode-copilot-e2e-root-cause-analysis
branch
September 22, 2026 07:00
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related microsoft/vscode-engineering#3886
Restarting only the process leaves sessions on disk when disposal fails. Those sessions can then appear in an unrelated later
list_sessionsunread assertion. This fixes that cascading test contamination; it does not claim to fix the original intermittent runtime restore timeout.