Conversation
Flue records its turn messages in pi-ai's shape, with a `toolResult` role and `toolCall` parts. Sentry renders neither, so tool calls and tool results were missing from the conversation views, and images were recorded as base64. A shared pi-ai mapper now translates them to the conventions, as the Google GenAI integration does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JPeer264
added this pull request to stack #25002
October 2, 2026 13:14
JPeer264
removed this pull request from stack #25002
October 2, 2026 13:31
JPeer264
added this pull request to stack #25004
October 2, 2026 13:57
This branch has not been deployed
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.
Flue records the messages of its turns in pi-ai's own shape, with a
toolResultrole andtoolCallparts. Sentry's AI views only render the gen_ai conventions shape, so tool calls and tool results were missing from Flue conversations, the tool result showed up with an invalid role, and images were recorded as base64. This maps the input and output messages to the conventions, the way #24352 did for Google GenAI.The mapper lives in
ai/pi-ai/because pi-durable sends the same message shape, and its integration uses the mapper too.🤖 Generated with Claude Code