Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(chat): include tool_call_id in artifact event payloads

Steven Enamakel9aed081a551c
diff --git a/app/src/services/chatService.ts b/app/src/services/chatService.ts
index 3e83eeb8c7..c66d47dd04 100644
--- a/app/src/services/chatService.ts
+++ b/app/src/services/chatService.ts
@@ -1393,6 +1393,7 @@ export function subscribeChatEvents(listeners: ChatEventListeners): () => void {
title: args.title,
workspace_dir: args.workspace_dir,
path: args.path,
+ tool_call_id: isNonEmptyString(args.tool_call_id) ? args.tool_call_id : undefined,
};
chatLog(
'%s thread_id=%s artifact_id=%s kind=%s',
@@ -1439,6 +1440,7 @@ export function subscribeChatEvents(listeners: ChatEventListeners): () => void {
workspace_dir: args.workspace_dir,
path: args.path,
size_bytes: args.size_bytes,
+ tool_call_id: isNonEmptyString(args.tool_call_id) ? args.tool_call_id : undefined,
};
chatLog(
'%s thread_id=%s artifact_id=%s kind=%s size=%d',
@@ -1484,6 +1486,7 @@ export function subscribeChatEvents(listeners: ChatEventListeners): () => void {
title: args.title,
workspace_dir: args.workspace_dir,
error: args.error,
+ tool_call_id: isNonEmptyString(args.tool_call_id) ? args.tool_call_id : undefined,
};
// Defence-in-depth: producer is expected to pre-truncate, but
// cap the log preview again so a leaky producer cannot blast