Skip to content

Commit 0e1815c

Browse files
committed
fix: failing tests following reasoning flag changes
Signed-off-by: Fred Bricon <[email protected]>
1 parent 0b4e31a commit 0e1815c

File tree

3 files changed

+36
-12
lines changed

3 files changed

+36
-12
lines changed

gui/src/redux/thunks/streamResponse.test.ts

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,16 @@ describe("streamResponseThunk", () => {
435435
],
436436
},
437437
],
438-
options: {},
438+
options: {
439+
reasoning: false,
440+
},
439441
});
440442

441443
expect(mockIdeMessenger.llmStreamChat).toHaveBeenCalledWith(
442444
{
443-
completionOptions: {},
445+
completionOptions: {
446+
reasoning: false,
447+
},
444448
legacySlashCommandData: undefined,
445449
messageOptions: { precompiled: true },
446450
messages: [
@@ -912,7 +916,9 @@ describe("streamResponseThunk", () => {
912916
],
913917
},
914918
],
915-
options: {},
919+
options: {
920+
reasoning: false,
921+
},
916922
},
917923
);
918924

@@ -1521,13 +1527,17 @@ describe("streamResponseThunk", () => {
15211527
],
15221528
},
15231529
],
1524-
options: {},
1530+
options: {
1531+
reasoning: false,
1532+
},
15251533
},
15261534
);
15271535

15281536
expect(mockIdeMessengerAbort.llmStreamChat).toHaveBeenCalledWith(
15291537
{
1530-
completionOptions: {},
1538+
completionOptions: {
1539+
reasoning: false,
1540+
},
15311541
legacySlashCommandData: undefined,
15321542
messageOptions: { precompiled: true },
15331543
messages: [

gui/src/redux/thunks/streamResponse_errorHandling.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,9 @@ describe("streamResponseThunk", () => {
677677
],
678678
},
679679
],
680-
options: {},
680+
options: {
681+
reasoning: false,
682+
},
681683
});
682684
expect(mockIdeMessenger.llmStreamChat).not.toHaveBeenCalled();
683685

@@ -1027,7 +1029,9 @@ describe("streamResponseThunk", () => {
10271029
],
10281030
},
10291031
],
1030-
options: {},
1032+
options: {
1033+
reasoning: false,
1034+
},
10311035
});
10321036
expect(mockIdeMessenger.llmStreamChat).not.toHaveBeenCalled();
10331037

gui/src/redux/thunks/streamResponse_toolCalls.test.ts

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,9 @@ describe("streamResponseThunk - tool calls", () => {
529529
],
530530
},
531531
],
532-
options: {},
532+
options: {
533+
reasoning: false,
534+
},
533535
},
534536
);
535537

@@ -1187,13 +1189,17 @@ describe("streamResponseThunk - tool calls", () => {
11871189
],
11881190
},
11891191
],
1190-
options: {},
1192+
options: {
1193+
reasoning: false,
1194+
},
11911195
},
11921196
);
11931197

11941198
expect(mockIdeMessengerReject.llmStreamChat).toHaveBeenCalledWith(
11951199
{
1196-
completionOptions: {},
1200+
completionOptions: {
1201+
reasoning: false,
1202+
},
11971203
legacySlashCommandData: undefined,
11981204
messageOptions: { precompiled: true },
11991205
messages: [
@@ -1838,13 +1844,17 @@ describe("streamResponseThunk - tool calls", () => {
18381844
],
18391845
},
18401846
],
1841-
options: {},
1847+
options: {
1848+
reasoning: false,
1849+
},
18421850
},
18431851
);
18441852

18451853
expect(mockIdeMessengerManual.llmStreamChat).toHaveBeenCalledWith(
18461854
{
1847-
completionOptions: {},
1855+
completionOptions: {
1856+
reasoning: false,
1857+
},
18481858
legacySlashCommandData: undefined,
18491859
messageOptions: { precompiled: true },
18501860
messages: [

0 commit comments

Comments
 (0)