feat: show expandable tool call details in chat activity panel

Thread toolArguments from the sidecar through shared contracts, main-process pipeline, and into the renderer. Add ToolCallDetailPanel with inline summaries (command, path, pattern, etc.) and expandable argument details for every tool-call event in the activity timeline.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David KayaandCopilot committed 2026-04-07 14:58:22 +02:00
1 parent fd9cc03c5c
commit 507bd5408c
8 files changed
+391

No files matched your search

+1
View File
@@ -290,6 +290,7 @@ export interface AgentActivityEvent {
sourceAgentName?: string;
toolName?: string;
toolCallId?: string;
toolArguments?: Record<string, unknown>;
fileChanges?: ToolCallFileChangePreview[];
}
+1
View File
@@ -46,6 +46,7 @@ export interface SessionEventRecord {
sourceAgentName?: string;
toolName?: string;
toolCallId?: string;
toolArguments?: Record<string, unknown>;
fileChanges?: ToolCallFileChangePreview[];
run?: SessionRunRecord;
error?: string;
+3
View File
@@ -60,6 +60,7 @@ export interface RunTimelineEventRecord {
targetAgentName?: string;
toolName?: string;
toolCallId?: string;
toolArguments?: Record<string, unknown>;
fileChanges?: ToolCallFileChangePreview[];
approvalId?: string;
approvalKind?: ApprovalCheckpointKind;
@@ -120,6 +121,7 @@ export interface AppendRunActivityEventInput {
sourceAgentName?: string;
toolName?: string;
toolCallId?: string;
toolArguments?: Record<string, unknown>;
fileChanges?: ToolCallFileChangePreview[];
}
@@ -824,6 +826,7 @@ export function appendRunActivityEvent(
agentName: agent.agentName ?? existingEvent?.agentName,
toolName: normalizeOptionalString(input.toolName) ?? existingEvent?.toolName,
toolCallId,
toolArguments: input.toolArguments ?? existingEvent?.toolArguments,
fileChanges: mergeToolCallFileChanges(existingEvent?.fileChanges, input.fileChanges),
};
return existingIndex >= 0