We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3097cd8 commit 43953d7Copy full SHA for 43953d7
web/src/state/chat/reducer.ts
@@ -137,6 +137,7 @@ export interface Task {
137
parent_id: number | null;
138
run_id: string;
139
debug: any;
140
+ unique_id: string;
141
child_ids: Array<number[]>;
142
result: any; // Key field for completion status
143
}
@@ -242,7 +243,7 @@ const getMessages = (state: ChatState) => getActiveThread(state).messages
242
243
* Converts a Task to a ChatCompletionMessageToolCall for display purposes
244
*/
245
const taskToToolCall = (task: Task): ChatCompletionMessageToolCall => ({
- id: `task_${task.id}`,
246
+ id: task.unique_id || `task_${task.id}`,
247
type: 'function',
248
function: {
249
name: task.agent,
0 commit comments