Skip to content

Commit 6046581

Browse files
committedNov 2, 2024
fix: the parent call frame should be of "no" tool category
Signed-off-by: Donnie Adams <[email protected]>
1 parent b30db3c commit 6046581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gptscript.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ export class Run {
960960
}
961961
} else if ((f.type as string).startsWith("call")) {
962962
f = f as CallFrame
963-
if (!f.parentID && this.parentCallId === "") {
963+
if (!f.parentID && this.parentCallId === "" && f.toolCategory === ToolCategory.NoCategory) {
964964
this.parentCallId = f.id
965965
}
966966
this.calls[f.id] = f

0 commit comments

Comments
 (0)