Implements the ui/update-model-context MCP Apps protocol method to allow
MCP UIs to update the chat widget's model context with structured data and
content attachments. Each update replaces only the context added by that
specific MCP app instance, preserving user-added attachments.
- Maps MCP content blocks to chat attachments:
- Images become image attachments
- Resource links become file attachments using McpResourceURI
- Text blocks become generic attachments with preview and tooltip
- Structured content becomes a single JSON attachment formatted nicely
- Uses hashed server ID prefix to track and replace only app-specific context
- Announces updateModelContext capability in host capabilities
Fixes https://github.com/microsoft/vscode/issues/289473
(Commit message generated by Copilot)
Hides the request edit hover UI in the chat list widget used by agent
session hover since request editing is not supported in that context.
- Add 'editable: false' to rendererOptions in agentSessionHoverWidget
- Hide requestHover element when editable is false in chatListRenderer
- Remove unused editableCodeBlock property from IChatListItemRendererOptions
Fixes https://github.com/microsoft/vscode/issues/289373
(Commit message generated by Copilot)
Extracts hover position logic into a dedicated getSessionHoverPosition()
method that correctly handles all viewport locations and orientations.
When the agent session view is in the bottom panel, the hover now appears
above the session rather than to the left, preventing it from hiding
session buttons.
- Adds getSessionHoverPosition() method to ChatViewPane
- Checks view location and returns appropriate HoverPosition
- Returns HoverPosition.ABOVE when panel position is BOTTOM
- Handles both sidebar and panel locations with panel position awareness
Fixes https://github.com/microsoft/vscode/issues/289369
(Commit message generated by Copilot)
- Change event.source.origin check to event.origin to avoid SecurityError
when accessing cross-origin frames in patched postMessage handlers
- Enable MCP Apps UI by default (mcpAppsEnabledConfig changed from false
to true) since the feature is now stable and ready for general use
Fixes https://github.com/microsoft/vscode/issues/289386
(Commit message generated by Copilot)
* chat: support representing file deletions in edit sessions
Add support for file deletion operations in chat editing sessions through
new ChatResponseWorkspaceEditPart. This allows agents to represent file-level
operations (deletions, creations, renames) alongside text and notebook edits.
- Adds ChatEditingDeletedFileEntry class to represent deleted files with
proper diff display and restoration functionality
- Introduces ChatResponseWorkspaceEditPart and IChatWorkspaceEdit interfaces
for file-level operations at the workspace level
- Implements workspace edit streaming through chat editing sessions with
proper undo/redo support
- Adds ChatWorkspaceEditContentPart for UI rendering of file operations
- Extends chat session storage to serialize deleted file entries
- Supports both acceptance and rejection of file deletions with proper state
management and snapshotting
Ref https://github.com/microsoft/vscode/issues/275705
(Commit message generated by Copilot)
* fix test
* Bump node-pty to 1.2.0-beta.7
* Deprecate TerminalSettingId.WindowsEnableConpty setting
* Remove windowsEnableConpty instead of deprecating
* Remove WINPTY from ps.ts
* Remove winpty from appropriate comments
* Remove winpty from IProcessReadyWindowsPty
* Remove from classifier.json. TODO on resize for node-pty
* Try adding option to test
* Add reference to issue