fix(DATAGO-124692): Fix issue with chat session reloading showing raw backend response#994
Closed
amir-ghasemi wants to merge 2 commits intomainfrom
Closed
fix(DATAGO-124692): Fix issue with chat session reloading showing raw backend response#994amir-ghasemi wants to merge 2 commits intomainfrom
amir-ghasemi wants to merge 2 commits intomainfrom
Conversation
WhiteSource Policy Violation Summary✅︎ No Blocking Whitesource Policy Violations found in solaceai/solace-agent-mesh-ui-pr-994! |
|
Collaborator
Author
|
Superseded by new architecture in #996 |
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.




This pull request introduces comprehensive support for resolving and displaying inline artifact content (using «artifact_content:...») in both the frontend and backend. The changes ensure that any artifact content markers embedded in chat messages are properly detected, resolved to actual content, and safely stored or displayed, both when saving tasks and when logging background agent messages. This improves artifact handling reliability and user experience, and prevents unresolved markers from leaking into the UI or database.
Artifact content marker handling and embed resolution:
ChatProvider.tsx) now detects and processes«artifact_content:...»,ensuring inline artifact displays are handled like other artifact markers, and strips these markers from visible text. This is a fallback only if BE save of resolved content fails. [1] [2] [3]sessions.py) resolves all embeds (including«artifact_content:...»)in chat message bubbles before saving, using the shared artifact service and new embed resolution utilities. This ensures that stored messages contain the actual artifact content, not just the marker. [1] [2] [3]TaskLoggerServiceis updated to support artifact resolution when logging background agent messages. It now resolves embeds in accumulated agent text before saving, using the artifact service if available, and falls back to stripping unresolved markers if resolution fails. [1] [2] [3] [4]Data structure and artifact marker management:
These improvements collectively ensure robust and consistent artifact content handling throughout the chat system, from user input to background agent actions and frontend display.