Closed
Description
Problem
The agentop detail pane does not show a tool call and its result in the message that holds them.
On a Claude Code request, the last turn is usually:
- An assistant message that calls a tool.
- A user message that holds the tool result.
The detail pane shows these two messages like this:
- The assistant message shows only
toolCallNames: "Bash". The command is not there. - The user message shows only
contentBytes: 1843. It looks empty.
Cause
- Results: the parser puts
tool_resultblocks intoinference.toolResults, not intomessages. This is on purpose (Feat: Record Anthropic tool results in session events #1338): plugins readmessages, and tool output must not reach them. But no message records which results it holds. So agentop shows the results as one folded list at the end of the event. - Calls: the parser keeps only the name of each
tool_useblock (Feat: Name the tools an assistant message called #1643). It drops theidand theinput. The arguments are only on the earlier response row'stoolCalls.view=summarydropstoolCalls, so agentop does not have them.
Proposal
The request records what its own detail view needs. No plugin sees the new data.
InferenceMessage.ToolUseIDs: the ids of the message'stool_useortool_resultblocks, joined by", ". Same pattern asToolCallNames.InferenceExtension.HistoryToolCalls: thetool_useblocks of the request (id, name, arguments). This is a new field, notToolCalls, because OPA, SPARC, CPEX and lineage readToolCallsas the calls the model asks for now. Same rules asToolResults: no plugin reads it,view=summarydrops it, the interner and the archive share its arguments.- agentop: in the detail pane, show each message's calls and results under that message, matched by id.
Scope
- Anthropic Messages and OpenAI Chat Completions.
- Not the Responses API (Codex). Its tool calls are separate input items, not messages.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
Feat: Show tool calls and results under the message that sent them