fix: Resolve the fix for intermittent issue image not showing in final answer and also fixed the Image is not getting rendered in WAF deployment#1063
Merged
Roopan-Microsoft merged 1 commit intoJun 24, 2026
Conversation
…wer and also fixed the Image is not getting rendered in WAF deployment
Author
|
@microsoft-github-policy-service agree |
Roopan-Microsoft
approved these changes
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
This pull request refactors how image URLs are handled and delivered throughout the backend and frontend, standardizing on relative backend proxy paths (e.g.,
/api/v4/images/{blob}) instead of absolute URLs or SAS links. This change improves compatibility across different deployment scenarios (public backend and WAF/private networking) and simplifies frontend logic for resolving image URLs. The update also ensures that markdown rendering in the UI consistently transforms image URLs for correct API routing.Backend changes:
/api/v4/images/{blob}), removing logic for generating absolute URLs or SAS tokens. This ensures browsers always fetch images through the backend proxy, supporting both public and private deployments. (Fe9f3741L46, Fe9f3741L73, F09d754cL177)orchestration_manager.pyto recognize both absolute and bare relative backend image paths, improving image detection in markdown. (Fa2ec1afL37)Frontend changes:
resolveApiAssetUrlutility inconfig.tsxto convert relative backend image paths to fully-qualified URLs based on the configured API origin. (F49b1da0L85)Chat.tsx,StreamingAgentMessage.tsx, andStreamingBufferMessage.tsx) to useresolveApiAssetUrlfor transforming image URLs, ensuring images render correctly regardless of deployment. (F7ce3d99L9, F7ce3d99L183, F6e593a9L8, F6e593a9L206, F01ed937L7, F01ed937L165, F01ed937L219)Documentation/Prompting:
Does this introduce a breaking change?
How to Test
What to Check
Verify that the following are valid
Other Information