Elffuss BraidHub

kikocis/continue public

fix HOTFIX remove cumulative args case
Changeset52d62c03b2ba0694fe52873ef0c880befaf209ff283ab11a4698be5e0cb06887
AuthorDallin Romney <dallinromney@gmail.com> · 2025-08-20 16:15 -07:00
CommitterDallin Romney <dallinromney@gmail.com> · 2025-08-20 16:15 -07:00
Parents32210eafa773

Browse the files at this changeset

1 file changed

modified gui/src/util/toolCallState.ts +5 −7
@@ -44,13 +44,11 @@
4444 // If args is JSON parseable, it is complete, don't add to it
4545 JSON.parse(currentArgs);
4646 } catch (e) {
47- if (argsDelta.startsWith(currentArgs)) {
48- // Case where model progresssively streams args but full args each time e.g. "{"file": "file1"}" -> "{"file": "file1", "line": 1}"
49- mergedArgs = argsDelta;
50- } else if (!currentArgs.startsWith(argsDelta)) {
51- // Case where model streams in args in parts e.g. "{"file": "file1"" -> ", "line": 1}"
52- mergedArgs = currentArgs + argsDelta;
53- }
47+ // Model streams in args in parts e.g. "{"file": "file1"" -> ", "line": 1}"
48+ mergedArgs = currentArgs + argsDelta;
49+
50+ // Note, removed case where model progresssively streams args but full args each time e.g. "{"file": "file1"}" -> "{"file": "file1", "line": 1}"
51+ // Because no apis do this and difficult to detect reliably
5452 }
5553
5654 const [_, parsedArgs] = incrementalParseJson(mergedArgs || "{}");