@@ -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,9 +101,8 @@ 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"
105- ) ;
104+ modelString ( "anthropic" , "claude-sonnet-4-5" )
105+ ) ;
106106 expect ( sendResult . success ) . toBe ( true ) ;
107107
108108 // Verify stream completes successfully
@@ -154,9 +154,8 @@ 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"
159- ) ;
157+ modelString ( "anthropic" , "claude-sonnet-4-5" )
158+ ) ;
160159 expect ( sendResult . success ) . toBe ( true ) ;
161160
162161 // Verify stream completes successfully
@@ -206,16 +205,12 @@ 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"
211- ) ,
208+ modelString ( "anthropic" , "claude-sonnet-4-5" ) ) ,
212209 sendMessageWithModel (
213210 env . mockIpcRenderer ,
214211 forkedWorkspaceId ,
215212 "What is 3+3? Answer with just the number." ,
216- "anthropic" ,
217- "claude-sonnet-4-5"
218- ) ,
213+ modelString ( "anthropic" , "claude-sonnet-4-5" ) ) ,
219214 ] ) ;
220215
221216 expect ( sourceResult . success ) . toBe ( true ) ;
@@ -253,9 +248,8 @@ describeIntegration("IpcMain fork workspace integration tests", () => {
253248 env . mockIpcRenderer ,
254249 sourceWorkspaceId ,
255250 "Count from 1 to 10, one number per line. Then say 'Done counting.'" ,
256- "anthropic" ,
257- "claude-sonnet-4-5"
258- ) ;
251+ modelString ( "anthropic" , "claude-sonnet-4-5" )
252+ ) ;
259253
260254 // Wait for stream to start and produce some content
261255 const sourceCollector = createEventCollector ( env . sentEvents , sourceWorkspaceId ) ;
@@ -286,9 +280,8 @@ describeIntegration("IpcMain fork workspace integration tests", () => {
286280 env . mockIpcRenderer ,
287281 forkedWorkspaceId ,
288282 "What is 7+3? Answer with just the number." ,
289- "anthropic" ,
290- "claude-sonnet-4-5"
291- ) ;
283+ modelString ( "anthropic" , "claude-sonnet-4-5" )
284+ ) ;
292285 expect ( forkedSendResult . success ) . toBe ( true ) ;
293286
294287 // Verify forked workspace stream completes successfully
0 commit comments