Skip to content

fix(insights): Don't display raw JSON as user message #109065

Merged
obostjancic merged 2 commits intomasterfrom
ognjenbostjancic/tet-1997-user-message-contains-tool-call
Feb 23, 2026
Merged

fix(insights): Don't display raw JSON as user message #109065
obostjancic merged 2 commits intomasterfrom
ognjenbostjancic/tet-1997-user-message-contains-tool-call

Conversation

@obostjancic
Copy link
Member

closes TET-1997: User message contains tool call

When gen_ai.request.messages is truncated by storage limits, JSON.parse fails and the catch block was returning the raw string as user content. This caused tool call JSON to appear as a "User" message in the conversations drawer.

…bute is truncated

When gen_ai.request.messages is truncated by storage limits, JSON.parse
fails and the catch block was returning the raw string as user content.
This caused tool call JSON to appear as a "User" message in the
conversations drawer.
@obostjancic obostjancic requested a review from a team as a code owner February 23, 2026 11:20
@linear
Copy link

linear bot commented Feb 23, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 23, 2026
@obostjancic obostjancic merged commit 8f0997e into master Feb 23, 2026
63 checks passed
@obostjancic obostjancic deleted the ognjenbostjancic/tet-1997-user-message-contains-tool-call branch February 23, 2026 12:11
@github-actions github-actions bot locked and limited conversation to collaborators Mar 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants