@@ -15,7 +15,7 @@ import {
1515 QueuedMessageChangedEvent ,
1616 RestoreToInputEvent ,
1717} from "@/common/types/ipc" ;
18- import { Result } from "@/common/types/result" ;
18+ import type { Result } from "@/common/types/result" ;
1919
2020// Skip all tests if TEST_INTEGRATION is not set
2121const describeIntegration = shouldRunIntegrationTests ( ) ? describe : describe . skip ;
@@ -42,21 +42,6 @@ async function getQueuedMessages(collector: EventCollector, timeoutMs = 5000): P
4242 return latestEvent . queuedMessages ;
4343}
4444
45- // Helper: Clear queue via IPC
46- async function clearQueuedMessages (
47- mockIpcRenderer : { invoke : ( channel : string , ...args : unknown [ ] ) => Promise < unknown > } ,
48- workspaceId : string
49- ) : Promise < void > {
50- const result = ( await mockIpcRenderer . invoke (
51- IPC_CHANNELS . WORKSPACE_QUEUE_CLEAR ,
52- workspaceId
53- ) ) as Result < void , string > ;
54-
55- if ( ! result . success ) {
56- throw new Error ( `Failed to clear queue: ${ result . error } ` ) ;
57- }
58- }
59-
6045// Helper: Wait for queued-message-changed event
6146async function waitForQueuedMessageEvent (
6247 collector : EventCollector ,
@@ -97,7 +82,7 @@ describeIntegration("IpcMain queuedMessages integration tests", () => {
9782 env . mockIpcRenderer ,
9883 workspaceId ,
9984 "Say 'FIRST' and nothing else" ,
100- modelString ( "anthropic" , "claude-sonnet-4" )
85+ modelString ( "anthropic" , "claude-sonnet-4-5 " )
10186 ) ;
10287
10388 const collector1 = createEventCollector ( env . sentEvents , workspaceId ) ;
@@ -108,7 +93,7 @@ describeIntegration("IpcMain queuedMessages integration tests", () => {
10893 env . mockIpcRenderer ,
10994 workspaceId ,
11095 "Say 'SECOND' and nothing else" ,
111- modelString ( "anthropic" , "claude-sonnet-4" )
96+ modelString ( "anthropic" , "claude-sonnet-4-5 " )
11297 ) ;
11398 expect ( queueResult . success ) . toBe ( true ) ;
11499
@@ -159,7 +144,7 @@ describeIntegration("IpcMain queuedMessages integration tests", () => {
159144 env . mockIpcRenderer ,
160145 workspaceId ,
161146 "Count to 10 slowly" ,
162- modelString ( "anthropic" , "claude-sonnet-4" )
147+ modelString ( "anthropic" , "claude-sonnet-4-5 " )
163148 ) ;
164149
165150 const collector = createEventCollector ( env . sentEvents , workspaceId ) ;
@@ -170,7 +155,7 @@ describeIntegration("IpcMain queuedMessages integration tests", () => {
170155 env . mockIpcRenderer ,
171156 workspaceId ,
172157 "This message should be restored" ,
173- modelString ( "anthropic" , "claude-sonnet-4" )
158+ modelString ( "anthropic" , "claude-sonnet-4-5 " )
174159 ) ;
175160
176161 // Verify message was queued
@@ -213,7 +198,7 @@ describeIntegration("IpcMain queuedMessages integration tests", () => {
213198 env . mockIpcRenderer ,
214199 workspaceId ,
215200 "Say 'FIRST' and nothing else" ,
216- modelString ( "anthropic" , "claude-sonnet-4" )
201+ modelString ( "anthropic" , "claude-sonnet-4-5 " )
217202 ) ;
218203
219204 const collector1 = createEventCollector ( env . sentEvents , workspaceId ) ;
@@ -257,7 +242,7 @@ describeIntegration("IpcMain queuedMessages integration tests", () => {
257242 env . mockIpcRenderer ,
258243 workspaceId ,
259244 "Say 'FIRST' and nothing else" ,
260- modelString ( "anthropic" , "claude-sonnet-4" )
245+ modelString ( "anthropic" , "claude-sonnet-4-5 " )
261246 ) ;
262247
263248 const collector1 = createEventCollector ( env . sentEvents , workspaceId ) ;
@@ -316,7 +301,7 @@ describeIntegration("IpcMain queuedMessages integration tests", () => {
316301 env . mockIpcRenderer ,
317302 workspaceId ,
318303 "Say 'FIRST' and nothing else" ,
319- modelString ( "anthropic" , "claude-sonnet-4" )
304+ modelString ( "anthropic" , "claude-sonnet-4-5 " )
320305 ) ;
321306
322307 const collector1 = createEventCollector ( env . sentEvents , workspaceId ) ;
@@ -375,7 +360,7 @@ describeIntegration("IpcMain queuedMessages integration tests", () => {
375360 env . mockIpcRenderer ,
376361 workspaceId ,
377362 "Say 'FIRST' and nothing else" ,
378- modelString ( "anthropic" , "claude-sonnet-4" )
363+ modelString ( "anthropic" , "claude-sonnet-4-5 " )
379364 ) ;
380365
381366 const collector1 = createEventCollector ( env . sentEvents , workspaceId ) ;
@@ -433,7 +418,7 @@ describeIntegration("IpcMain queuedMessages integration tests", () => {
433418 env . mockIpcRenderer ,
434419 workspaceId ,
435420 "Say 'FIRST' and nothing else" ,
436- modelString ( "anthropic" , "claude-sonnet-4" )
421+ modelString ( "anthropic" , "claude-sonnet-4-5 " )
437422 ) ;
438423
439424 const collector1 = createEventCollector ( env . sentEvents , workspaceId ) ;
0 commit comments