Skip to content

Decode image name for display in carousel#317885

Merged
kycutler merged 2 commits into
mainfrom
kycutler/known-parrotfish
May 25, 2026
Merged

Decode image name for display in carousel#317885
kycutler merged 2 commits into
mainfrom
kycutler/known-parrotfish

Conversation

@kycutler
Copy link
Copy Markdown
Contributor

@kycutler kycutler commented May 21, 2026

Fixes #317135

Likely regressed with #308128

Copilot AI review requested due to automatic review settings May 21, 2026 23:29
@kycutler kycutler self-assigned this May 21, 2026
@kycutler kycutler requested a review from TylerLeonhardt May 21, 2026 23:30
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

Fixes a chat attachment display issue where percent-encoded image filenames (e.g. Element%20Screenshot) appear encoded in the Images Preview carousel/editor title.

Changes:

  • Decode the last URI path segment via decodeURIComponent when building single-image carousel arguments.
  • Preserve existing behavior for invalid percent-encoding by falling back to the raw segment.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/chatImageCarouselService.ts Decodes the image name extracted from the URI path so titles/labels display a human-readable filename in the carousel.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread src/vs/workbench/contrib/chat/browser/chatImageCarouselService.ts
jruales
jruales previously approved these changes May 21, 2026
Co-authored-by: kycutler <67761731+kycutler@users.noreply.github.com>
@kycutler kycutler enabled auto-merge (squash) May 25, 2026 19:40
@kycutler kycutler merged commit c298595 into main May 25, 2026
25 checks passed
@kycutler kycutler deleted the kycutler/known-parrotfish branch May 25, 2026 19:59
@vs-code-engineering vs-code-engineering Bot added this to the 1.123.0 milestone May 25, 2026
dileepyavan pushed a commit that referenced this pull request May 27, 2026
* Decode image name for display in carousel

* Add test for percent-encoded carousel image names

Co-authored-by: kycutler <67761731+kycutler@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
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.

Element%20screenshot show when opening browser attachment

5 participants