Skip to content

Use legacy lookup for chat session#276170

Merged
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/distinctive-turtle
Nov 7, 2025
Merged

Use legacy lookup for chat session#276170
mjbvz merged 1 commit intomicrosoft:mainfrom
mjbvz:dev/mjbvz/distinctive-turtle

Conversation

@mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Nov 7, 2025

Fixes #276167

Workaround until we get proper fix as part of #274403

Fixes microsoft#276167

Workaround until we get proper fix as part of microsoft#274403
Copilot AI review requested due to automatic review settings November 7, 2025 19:20
@mjbvz mjbvz enabled auto-merge November 7, 2025 19:21
@vs-code-engineering vs-code-engineering bot added this to the November 2025 milestone Nov 7, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the session lookup in languageModelToolsService.ts to use the newer getSessionByLegacyId() method instead of constructing a URI with LocalChatSessionUri.forSession().

  • Removes unnecessary URI construction when looking up chat sessions by their string ID
  • Simplifies the code by directly using getSessionByLegacyId() which accepts a string session ID

@mjbvz mjbvz merged commit 1f95755 into microsoft:main Nov 7, 2025
22 of 23 checks passed
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI session permission failure

3 participants