Skip to content

refactor: update chat session handling to use sessionResource instead of sessionId#289178

Merged
bhavyaus merged 2 commits intomainfrom
dev/bhavyau/todo-session
Jan 20, 2026
Merged

refactor: update chat session handling to use sessionResource instead of sessionId#289178
bhavyaus merged 2 commits intomainfrom
dev/bhavyau/todo-session

Conversation

@bhavyaus
Copy link
Copy Markdown
Collaborator

For: #274403

Copilot AI review requested due to automatic review settings January 20, 2026 19:03
@bhavyaus bhavyaus enabled auto-merge (squash) January 20, 2026 19:05
Copy link
Copy Markdown
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 migrates the ManageTodoListTool implementation from using string-based session IDs to URI-based session resources, as part of the larger effort tracked in issue #274403 to support contributed chat providers.

Changes:

  • Updated IChatTodoListContent interface to use sessionResource: URI instead of sessionId: string
  • Refactored ManageTodoListTool to obtain session resource from invocation context and handle missing context gracefully
  • Removed deprecated session ID parameters from tool input schema and telemetry
  • Updated test cases to use the new sessionResource field

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/vs/workbench/contrib/chat/common/chatService/chatService.ts Updated IChatTodoListContent interface to replace sessionId string with sessionResource URI
src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.ts Refactored to use sessionResource from invocation context, removed fallback to default session ID, cleaned up unused imports and telemetry fields
src/vs/workbench/contrib/chat/test/browser/accessibility/chatResponseAccessibleView.test.ts Updated test data to use sessionResource URI instead of sessionId string

bpasero
bpasero previously approved these changes Jan 20, 2026
mjbvz
mjbvz previously approved these changes Jan 20, 2026
@bpasero
Copy link
Copy Markdown
Member

bpasero commented Jan 20, 2026

@bhavyaus Red CI

@bhavyaus bhavyaus dismissed stale reviews from mjbvz and bpasero via 84ec897 January 20, 2026 19:45
@bhavyaus bhavyaus merged commit 501401e into main Jan 20, 2026
22 checks passed
@bhavyaus bhavyaus deleted the dev/bhavyau/todo-session branch January 20, 2026 20:16
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Mar 6, 2026
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.

5 participants