Repository navigation
agentHost: fix Connector authorization test fixture - #342706
Merged
Merged
Conversation
Fixes #342697 Co-authored-by: Copilot <[email protected]>
Vritant Bhardwaj (vritant24)
approved these changes
Oct 19, 2026
Aaron Munger (amunger)
marked this pull request as ready for review
October 19, 2026 21:44
Aaron Munger (amunger)
enabled auto-merge (squash)
October 19, 2026 21:44
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The minimal test-only fix addresses the reported dependency failure, with no unresolved findings.
No open issues 🎉
What changed in this PR
Fixes #342697 by supplying the missing default-account dependency in the shared Connector authorization test fixture.
Changes:
- Imports and stubs
IDefaultAccountServicewithcurrentDefaultAccount = null. - Leaves production behavior and test assertions unchanged.
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/test/browser/agentSessions/agentHostCustomizationService.test.ts | Registers the missing service stub in createSut. |
Review effort: Balanced
Joaquín Ruales (jruales)
approved these changes
Oct 19, 2026
Elijah King (eli-w-king)
added a commit
that referenced
this pull request
Oct 19, 2026
Authentication forwarding reads the default account since #342104, which merged right after the Connector authorization tests in #342479, so those tests fail on main. Same change as #342706. Co-authored-by: Copilot <[email protected]>
Don Jayamanne (DonJayamanne)
approved these changes
Oct 19, 2026
Benjamin Christopher Simmonds (benibenj)
added a commit
that referenced
this pull request
Oct 19, 2026
#342682 and #342706 both added the IDefaultAccountService import and stub to the Connector authorization test fixture, so main no longer compiles (duplicate identifier). Keep a single copy. Co-authored-by: Copilot <[email protected]>
Vritant Bhardwaj (vritant24)
added a commit
that referenced
this pull request
Oct 19, 2026
This reverts commit c2f7817, matching #342725. The IDefaultAccountService import and service stub already existed from #342682, so main fails to compile with a duplicate identifier. Co-authored-by: Copilot <[email protected]>
Ross Wollman (rwoll)
pushed a commit
that referenced
this pull request
Oct 19, 2026
#342725) This reverts commit c2f7817. The import and service stub already existed, so this change duplicated them. Co-authored-by: Copilot <[email protected]>
Benjamin Christopher Simmonds (benibenj)
added a commit
that referenced
this pull request
Oct 19, 2026
* sessions: extend sessions list drag and drop across placements Resolve every session drop to a destination placement (Pinned, a custom group, an ungrouped section, or Archived) and apply only the archive, pin, and group changes that placement precedence needs. This lets sessions be dragged out of groups into date sections, unpinned, archived (with undo) and restored by dragging, placed at the top of a date section via its header, and moved to the end of the date sections by dropping below the last row. Nested chats can be reordered within their session through a new persisted, list-owned chat order, and dropping a session on a chat row places it after that chat's session. Co-authored-by: Copilot <[email protected]> * sessions: address drag and drop review feedback Add keyboard Move Up/Move Down actions for nested chats that keep focus on the moved chat. Anchor drops below the last row in an earlier date section when the selection empties the last one, preserve the dragged sessions' display order, and only offer date section drops when date grouping will render the sessions in that section. Co-authored-by: Copilot <[email protected]> * agentHost: remove duplicate Connector test fixture from concurrent fixes #342682 and #342706 both added the IDefaultAccountService import and stub to the Connector authorization test fixture, so main no longer compiles (duplicate identifier). Keep a single copy. Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[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.
Fixes #342697.
Restore the Connector authorization tests, which fail when credential forwarding tries to resolve the unregistered
IDefaultAccountServicedependency. Register a stub withcurrentDefaultAccount = nullin the sharedcreateSutfixture, matching the authentication test fixtures.To test:
.\scripts\test.bat --run src\vs\workbench\contrib\chat\test\browser\agentSessions\agentHostCustomizationService.test.ts— 47 passed, 0 failed.