We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2f074a commit d1b09a2Copy full SHA for d1b09a2
refact-agent/gui/src/features/Chat/Thread/utils.ts
@@ -82,6 +82,10 @@ POINT2 FOR_FUTURE_FEREFENCE: ...
82
function mergeToolCall(prev: ToolCall[], add: ToolCall): ToolCall[] {
83
const calls = prev.slice();
84
85
+ // NOTE: we can't be sure that backend sends correct indexes for tool calls
86
+ // in case of qwen3 with sglang I get 2 problems fixed here:
87
+ // 1. index of first tool call delta == 2 next == 0 (huh?)
88
+ // 2. second tool call in a row has id == null
89
if (!calls.length || add.function.name) {
90
add.index = calls.length;
91
if (!add.id) {
0 commit comments