@@ -1047,7 +1047,7 @@ describe("orchestrator MCP toolkit", () => {
10471047 commandId : CommandId . make ( "command:mcp-parent:queue-race:user" ) ,
10481048 threadId : parentThreadId ,
10491049 messageId : queuedUserMessageId ,
1050- text : "Queue user follow-up work." ,
1050+ text : "🙂" . repeat ( 16001 ) ,
10511051 attachments : [ ] ,
10521052 modelSelection : codexSelection ,
10531053 dispatchMode : { type : "queue_after_active" } ,
@@ -1067,6 +1067,24 @@ describe("orchestrator MCP toolkit", () => {
10671067 if ( queuedUserRun === undefined ) {
10681068 return yield * Effect . die ( new Error ( "Queued user follow-up missing." ) ) ;
10691069 }
1070+ const queueFirstPage = yield * invoke ( "t3_queue_list" , { limit : 1 } ) ;
1071+ expect ( queueFirstPage . structuredContent ) . toMatchObject ( {
1072+ items : [ { queuedRunId : queueRace . queuedRun . id } ] ,
1073+ nextCursor : 1 ,
1074+ } ) ;
1075+ const queueSecondPage = yield * invoke ( "t3_queue_list" , { cursor : 1 , limit : 1 } ) ;
1076+ expect ( queueSecondPage . structuredContent ) . toEqual ( {
1077+ items : [ { queuedRunId : queuedUserRun . id , text : "🙂" . repeat ( 1000 ) , truncated : true } ] ,
1078+ nextCursor : null ,
1079+ } ) ;
1080+ const queueRead = yield * invoke ( "t3_queue_read" , { queuedRunId : queuedUserRun . id } ) ;
1081+ expect ( queueRead . structuredContent ) . toEqual ( {
1082+ queuedRunId : queuedUserRun . id ,
1083+ text : "🙂" . repeat ( 16000 ) ,
1084+ truncated : true ,
1085+ } ) ;
1086+ const missingQueueRead = yield * invoke ( "t3_queue_read" , { queuedRunId : parentRun . id } ) ;
1087+ expect ( missingQueueRead . structuredContent ) . toMatchObject ( { code : "invalid_request" } ) ;
10701088 const queueRaceStatus = yield * invoke ( "task_status" , { taskId : queueRace . task . id } ) ;
10711089 expect ( queueRaceStatus . isError ) . toBe ( false ) ;
10721090 yield * waitForProjection (
0 commit comments