Skip to content

agentHost: fix Connector authorization test fixture - #342706

Merged
Aaron Munger (amunger) merged 1 commit into
mainfrom
agents/fix-connector-auth-tests
Oct 19, 2026
Merged

Aaron Munger (amunger) merged 1 commit into
mainfrom
agents/fix-connector-auth-tests

Conversation

@amunger

Copy link
Copy Markdown
Collaborator

Fixes #342697.

Restore the Connector authorization tests, which fail when credential forwarding tries to resolve the unregistered IDefaultAccountService dependency. Register a stub with currentDefaultAccount = null in the shared createSut fixture, 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.

Copilot AI balanced review requested due to automatic review settings October 19, 2026 21:41
@amunger
Aaron Munger (amunger) marked this pull request as ready for review October 19, 2026 21:44
@amunger
Aaron Munger (amunger) enabled auto-merge (squash) October 19, 2026 21:44

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.

🟢 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 IDefaultAccountService with currentDefaultAccount = 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

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]>
@amunger
Aaron Munger (amunger) merged commit c2f7817 into main Oct 19, 2026
50 checks passed
@amunger
Aaron Munger (amunger) deleted the agents/fix-connector-auth-tests branch October 19, 2026 22:25
@vs-code-engineering vs-code-engineering Bot added this to the 1.144.0 milestone 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]>
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.

Connector authorization tests fail without default account service stub

5 participants