@@ -13,6 +13,7 @@ import {
1313 createEventCollector ,
1414 assertStreamSuccess ,
1515 waitFor ,
16+ modelString ,
1617} from "./helpers" ;
1718import { detectDefaultTrunkBranch } from "../../src/git" ;
1819import { HistoryService } from "../../src/services/historyService" ;
@@ -100,8 +101,7 @@ describeIntegration("IpcMain fork workspace integration tests", () => {
100101 env . mockIpcRenderer ,
101102 forkedWorkspaceId ,
102103 "What is 2+2? Answer with just the number." ,
103- "anthropic" ,
104- "claude-sonnet-4-5"
104+ modelString ( "anthropic" , "claude-sonnet-4-5" )
105105 ) ;
106106 expect ( sendResult . success ) . toBe ( true ) ;
107107
@@ -154,8 +154,7 @@ describeIntegration("IpcMain fork workspace integration tests", () => {
154154 env . mockIpcRenderer ,
155155 forkedWorkspaceId ,
156156 "What word did I ask you to remember? Reply with just the word." ,
157- "anthropic" ,
158- "claude-sonnet-4-5"
157+ modelString ( "anthropic" , "claude-sonnet-4-5" )
159158 ) ;
160159 expect ( sendResult . success ) . toBe ( true ) ;
161160
@@ -206,15 +205,13 @@ describeIntegration("IpcMain fork workspace integration tests", () => {
206205 env . mockIpcRenderer ,
207206 sourceWorkspaceId ,
208207 "What is 5+5? Answer with just the number." ,
209- "anthropic" ,
210- "claude-sonnet-4-5"
208+ modelString ( "anthropic" , "claude-sonnet-4-5" )
211209 ) ,
212210 sendMessageWithModel (
213211 env . mockIpcRenderer ,
214212 forkedWorkspaceId ,
215213 "What is 3+3? Answer with just the number." ,
216- "anthropic" ,
217- "claude-sonnet-4-5"
214+ modelString ( "anthropic" , "claude-sonnet-4-5" )
218215 ) ,
219216 ] ) ;
220217
@@ -253,8 +250,7 @@ describeIntegration("IpcMain fork workspace integration tests", () => {
253250 env . mockIpcRenderer ,
254251 sourceWorkspaceId ,
255252 "Count from 1 to 10, one number per line. Then say 'Done counting.'" ,
256- "anthropic" ,
257- "claude-sonnet-4-5"
253+ modelString ( "anthropic" , "claude-sonnet-4-5" )
258254 ) ;
259255
260256 // Wait for stream to start and produce some content
@@ -286,8 +282,7 @@ describeIntegration("IpcMain fork workspace integration tests", () => {
286282 env . mockIpcRenderer ,
287283 forkedWorkspaceId ,
288284 "What is 7+3? Answer with just the number." ,
289- "anthropic" ,
290- "claude-sonnet-4-5"
285+ modelString ( "anthropic" , "claude-sonnet-4-5" )
291286 ) ;
292287 expect ( forkedSendResult . success ) . toBe ( true ) ;
293288
0 commit comments