mirror of
https://github.com/davidkaya/aryx.git
synced 2026-11-18 23:58:17 +01:00
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:
1 parent
fd9cc03c5c
commit
507bd5408c
8 files changed
+391
No files matched your search
@@ -290,6 +290,7 @@ export interface AgentActivityEvent {
|
||||
sourceAgentName?: string;
|
||||
toolName?: string;
|
||||
toolCallId?: string;
|
||||
toolArguments?: Record<string, unknown>;
|
||||
fileChanges?: ToolCallFileChangePreview[];
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ export interface SessionEventRecord {
|
||||
sourceAgentName?: string;
|
||||
toolName?: string;
|
||||
toolCallId?: string;
|
||||
toolArguments?: Record<string, unknown>;
|
||||
fileChanges?: ToolCallFileChangePreview[];
|
||||
run?: SessionRunRecord;
|
||||
error?: string;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user