Skip to content

Group session artifact images in carousel - #331946

Merged
Benjamin Christopher Simmonds (benibenj) merged 2 commits into
mainfrom
benibenj/session-artifact-images
Aug 21, 2026
Merged

Benjamin Christopher Simmonds (benibenj) merged 2 commits into
mainfrom
benibenj/session-artifact-images

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

Summary

  • group image and screenshot artifacts under a dedicated Images section
  • open artifact images in the modal Images Preview carousel with all artifact images
  • start the carousel at the selected artifact image

Tests

  • Session Artifacts unit tests

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.

Pull request overview

Groups session artifact images and opens them in Images Preview at the selected image.

Changes:

  • Adds a dedicated Images artifact section.
  • Opens all artifact images in a carousel.
  • Adds unit coverage for grouping and selection.
Show a summary per file
File Description
sessionArtifacts.ts Builds image sections and launches the carousel.
sessionArtifacts.test.ts Tests image grouping and start index.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

}
void this._openerService.open(uri, { fromUserGesture: true });
},
openImages: (images, startIndex) => {

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.

Fixed in 270a8f8: buildSessionArtifactSections now takes the carousel enablement (read via observableConfigValue(ChatConfiguration.ImageCarouselEnabled, true, ...)) and, when disabled, image entries open the resource with the default "Open {label}" ARIA label.

@benibenj
Benjamin Christopher Simmonds (benibenj) merged commit 9711aeb into main Aug 21, 2026
27 checks passed
@benibenj
Benjamin Christopher Simmonds (benibenj) deleted the benibenj/session-artifact-images branch August 21, 2026 13:46
@vs-code-engineering vs-code-engineering Bot added this to the 1.135.0 milestone Aug 21, 2026
Logan Ramos (lramos15) added a commit that referenced this pull request Aug 21, 2026
The image section called `artifactLocation`, but the helper is named
`sessionArtifactLocation`, as the five other call sites use. This broke
compilation and threw `ReferenceError` from the two Session Artifacts
tests that build an image section.

Introduced by #331946 and present on main.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: b8277a07-8be3-4c23-a886-ba92a9c4cac0
Logan Ramos (lramos15) added a commit that referenced this pull request Aug 21, 2026
…331978)

* Agent Host changes for lramos15/agents/vscode-issue-331852-proposal

* Refactor chat input and attachment components for improved performance

- Remove unused code from agentHostInputCompletions and newChatContextAttachments.
- Optimize chatInputPart and chatAttachmentWidgets for better efficiency.
- Update tests for newChatInputPaste to reflect changes in functionality.

* Fix undefined artifactLocation in session artifact images

The image section called `artifactLocation`, but the helper is named
`sessionArtifactLocation`, as the five other call sites use. This broke
compilation and threw `ReferenceError` from the two Session Artifacts
tests that build an image section.

Introduced by #331946 and present on main.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: b8277a07-8be3-4c23-a886-ba92a9c4cac0

---------

Co-authored-by: Copilot <[email protected]>
Copilot-Session: b8277a07-8be3-4c23-a886-ba92a9c4cac0
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Oct 5, 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