Repository navigation
agentHost: give chats a turn before moving them in read-state tests - #344327
Merged
Sandeep Somavarapu (sandy081) merged 1 commit intoOct 26, 2026
Merged
Sandeep Somavarapu (sandy081) merged 1 commit into
Sandeep Somavarapu (sandy081) merged 1 commit into
Conversation
Co-authored-by: Copilot <[email protected]>
Federico Brancasi (federicobrancasi)
approved these changes
Oct 26, 2026
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The narrowly scoped test setup changes preserve read-state assertions and production behavior, with no unresolved findings.
No open issues 🎉
What changed in this PR
This test-only fix reconciles the read-state-across-moves tests with the rule that chats must start a turn before they can move.
Changes:
- Uses the existing
completeTurnhelper to make moved chats eligible in three tests. - Completes turns before setting read state, preserving existing assertions and production behavior.
| File | Description |
|---|---|
src/vs/platform/agentHost/test/node/agentService.test.ts |
Updates chat-move, session-move, and reorder test setup to satisfy move eligibility. |
Review effort: Balanced
Sandeep Somavarapu (sandy081)
enabled auto-merge (squash)
October 26, 2026 15:53
Sandeep Somavarapu (sandy081)
deleted the
agents/fix-read-state-tests-turnless-move
branch
October 26, 2026 16:21
Benjamin Christopher Simmonds (benibenj)
pushed a commit
that referenced
this pull request
Oct 26, 2026
…344327) Co-authored-by: Copilot <[email protected]>
Benjamin Christopher Simmonds (benibenj)
added a commit
that referenced
this pull request
Oct 26, 2026
* sessions: keep artifact details stable on hover and refresh Center row content when item actions appear, and omit transient loading labels without hiding errors or sign-in requirements. Cover hover, rerun spinners, and refresh geometry with regression tests. Co-authored-by: Copilot <[email protected]> * agentHost: give chats a turn before moving them in read-state tests (#344327) Co-authored-by: Copilot <[email protected]> * sessions: preserve accessible artifact loading states Expose activity-history and main/contribution loading through the details view models and aria-busy, without adding visible loading messages or moving existing rows. Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]> Co-authored-by: Sandeep Somavarapu <[email protected]>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Main is red after #344057 (refuse moving a chat that has not sent a message) met #344244 (read-state-across-moves tests), which moved chats that never ran a turn.
Three tests in
agentService.test.ts("read state across moves") now complete a turn on each moved chat with the existingcompleteTurnhelper, before the read state under test is set, so the turn does not change what each test asserts:The product rule is unchanged.
Validation:
--grep "read state across moves"gave 3 failing.src/vs/platform/agentHost/test/nodefolder: 13546 passing, 0 failing; eslint clean.