Skip to content

Include file path in image prompts#3790

Merged
justschen merged 3 commits intomicrosoft:mainfrom
FAStre:main
Feb 19, 2026
Merged

Include file path in image prompts#3790
justschen merged 3 commits intomicrosoft:mainfrom
FAStre:main

Conversation

@FAStre
Copy link
Contributor

@FAStre FAStre commented Feb 17, 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 adds file path information to image prompts to fix issue #295699. The change enables AI models to know which file an image attachment came from, improving context awareness when images are referenced in conversations.

Changes:

  • Added IPromptPathRepresentationService dependency injection to the Image component to enable file path resolution
  • Introduced <Tag name='attachment'> element with filePath attribute when rendering images with references

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

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

@jruales jruales assigned roblourens and unassigned jruales Feb 17, 2026
@roblourens roblourens assigned justschen and unassigned roblourens Feb 17, 2026
@justschen justschen enabled auto-merge February 19, 2026 00:46
@vs-code-engineering vs-code-engineering bot added this to the February 2026 milestone Feb 19, 2026
@justschen justschen added this pull request to the merge queue Feb 19, 2026
Merged via the queue into microsoft:main with commit e77b161 Feb 19, 2026
9 checks passed
justschen added a commit that referenced this pull request Feb 20, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent cannot access file paths for uploaded/pasted images

6 participants