Repository navigation
Read a tool call as its arguments in AI agent conversations - #14174
Merged
Merged
Conversation
A step on one part of a record reads that part alone, as the AI Sessionizer does since apache/skywalking-ai-sessionizer#94. The document read a tool call that shares a record with the agent's text as that text, and a queued command kept as data beside other text as that text too. Now a tool call reads as its arguments, and a queued command as the prompt inside its own data. On a local Sessionizer root, 10 of 25 LangChain tool calls shared a record with text, and 3 of 109,397 Claude Code ones. No test fixture holds such a record, so the documents the tests compare with the Sessionizer's are unchanged.
wankai123
approved these changes
Oct 28, 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.
Read a tool call as its arguments in AI agent conversations
This follows apache/skywalking-ai-sessionizer#94, which changes the text of a step that stands on one part of a record.
The OAP mirrors the document the Sessionizer defines in
The asz.view document.
queued_commandenvelope, and otherwise the data as the part holds it. A tool call that shares a record with theagent's text reads as its arguments, never as that text.
ConversationViewBuilder.filltook the readable text of the whole record whenever it differed from thepart's data. So a tool call beside the agent's text read as that text, and a queued command beside other text read as
that other text.
Claude Code ones.
Tests.
RecordReadingTest.aStepOnAPartReadsThatPartmirrors the Sessionizer's own test: a tool call beside the agent's textreads as its arguments, and a queued command beside unrelated text reads as its own prompt.
fillis nowpackage-private so the test can call it.
and with the prompt taken from the whole record the queued command read as the unrelated text.
Sessionizer's is unchanged. All 186 tests of the module pass.
The Horizon UI needs no change: it draws the text the document carries.
CHANGESlog.