Skip to content

Conversation

@alexr00
Copy link
Member

@alexr00 alexr00 commented Jan 14, 2026

Reverts #287668 and #286642

…row"

This reverts commit 81f7af4, reversing
changes made to 85a14f9.
…ion-item-controller"

This reverts commit b39ecc3, reversing
changes made to 45aced5.
Copilot AI review requested due to automatic review settings January 14, 2026 09:54
@alexr00 alexr00 enabled auto-merge (squash) January 14, 2026 09:54
@alexr00 alexr00 self-assigned this Jan 14, 2026
@vs-code-engineering
Copy link

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.ts
  • src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.ts
  • src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts

@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 14, 2026
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 reverts two recent pull requests (#287668 and #286642) that introduced changes to chat session functionality, specifically reverting the controller-based API and updated timing information structure.

Changes:

  • Reverts API version from 4 to 3 for chatSessionsProvider proposal
  • Reverts timing properties from created/lastRequestStarted/lastRequestEnded back to startTime/endTime
  • Removes the controller-based ChatSessionItemController API in favor of the provider-based ChatSessionItemProvider API
  • Removes the archived property from chat session items
  • Updates all test files to use the reverted timing structure

Reviewed changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts Reverts API version to 3, removes controller-based API, reverts timing properties to startTime/endTime
src/vs/workbench/contrib/chat/test/common/model/mockChatModel.ts Updates mock timing to use startTime instead of created/lastRequestStarted/lastRequestEnded
src/vs/workbench/contrib/chat/test/browser/agentSessions/localAgentSessionsProvider.test.ts Updates test timing objects to use startTime/endTime structure
src/vs/workbench/contrib/chat/test/browser/agentSessions/agentSessionsDataSource.test.ts Updates test comparator to use startTime/endTime instead of created/lastRequestStarted/lastRequestEnded
src/vs/workbench/contrib/chat/test/browser/agentSessions/agentSessionViewModel.test.ts Updates all test cases to use startTime/endTime timing structure, removes makeNewSessionTiming options
src/vs/workbench/contrib/chat/common/model/chatSessionStore.ts Updates session metadata timing to use startTime/endTime
src/vs/workbench/contrib/chat/common/model/chatModel.ts Reverts ChatModel.timing getter to return startTime/endTime
src/vs/workbench/contrib/chat/common/chatSessionsService.ts Updates IChatSessionItem timing interface to use startTime/endTime
src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.ts Updates timing fallback to use startTime instead of created/lastRequestStarted/lastRequestEnded
src/vs/workbench/contrib/chat/common/chatService/chatService.ts Updates IChatSessionTiming interface to use startTime/endTime
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.ts Updates UI rendering to use startTime/endTime for display
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.ts Updates session picker to use startTime/endTime
src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.ts Updates session model timing handling and cache serialization to use startTime/endTime
src/vs/workbench/api/common/extHostChatSessions.ts Removes controller-based API implementation, removes native private fields and eslint disable comment
src/vs/workbench/api/common/extHost.api.impl.ts Removes createChatSessionItemController API registration
src/vs/workbench/api/browser/mainThreadChatSessions.ts Removes archived property from session items
src/vs/platform/extensions/common/extensionsApiProposals.ts Reverts chatSessionsProvider version from 4 to 3
eslint.config.js Removes 'archive' from allowed event naming verbs

timing: { created, lastRequestStarted: created, lastRequestEnded },
changes: { files: 1, insertions: 10, deletions: 5 }
timing: { startTime, endTime },
changes: { files: 1, insertions: 10, deletions: 5, details: [] }
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The details: [] property should be removed from the changes object. According to the IChatSessionItem interface, when changes is a simple object (not an array), it should only contain files, insertions, and deletions properties. The details property doesn't exist in this format.

Suggested change
changes: { files: 1, insertions: 10, deletions: 5, details: [] }
changes: { files: 1, insertions: 10, deletions: 5 }

Copilot uses AI. Check for mistakes.
const lastRequestStarted = timing?.lastRequestStarted ?? timing?.startTime;
const lastRequestEnded = timing?.lastRequestEnded ?? timing?.endTime;

private convertChatSessionItem(sessionType: string, sessionContent: vscode.ChatSessionItem): IChatSessionItem {
Copy link

Copilot AI Jan 14, 2026

Choose a reason for hiding this comment

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

The sessionType parameter is not used in the method body and should be removed to clean up the code.

Suggested change
private convertChatSessionItem(sessionType: string, sessionContent: vscode.ChatSessionItem): IChatSessionItem {
private convertChatSessionItem(sessionType: string, sessionContent: vscode.ChatSessionItem): IChatSessionItem {
void sessionType;

Copilot uses AI. Check for mistakes.
@alexr00 alexr00 merged commit 17523c0 into main Jan 14, 2026
30 of 35 checks passed
@alexr00 alexr00 deleted the alexr00/anxious-mule branch January 14, 2026 10:18
@RaymondTracer
Copy link

Took long enough, I hope they remove his pull request privileges. I appreciate it when real developers do real work. Thank you very much for the reverts!

eli-w-king pushed a commit that referenced this pull request Jan 14, 2026
* Revert "Merge pull request #287668 from mjbvz/dev/mjbvz/eventual-sparrow"

This reverts commit 81f7af4, reversing
changes made to 85a14f9.

* Revert "Merge pull request #286642 from microsoft/dev/mjbvz/chat-session-item-controller"

This reverts commit b39ecc3, reversing
changes made to 45aced5.
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.

4 participants