File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ export function addSubtaskFixtures(mock: InstanceType<typeof LLMock>) {
5757 mock . addFixture ( {
5858 match : {
5959 userMessage : new RegExp ( SUBTASK_FAST_PARENT_MARKER ) ,
60+ sequenceIndex : 0 ,
6061 } ,
6162 response : {
6263 toolCalls : [
@@ -160,6 +161,7 @@ export function addSubtaskFixtures(mock: InstanceType<typeof LLMock>) {
160161 mock . addFixture ( {
161162 match : {
162163 userMessage : new RegExp ( SUBTASK_XPROFILE_PARENT_MARKER ) ,
164+ sequenceIndex : 0 ,
163165 } ,
164166 response : {
165167 toolCalls : [
Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ suite("Roo Code Subtasks", function () {
356356 ...parentProfile ,
357357 openRouterModelId : "openai/gpt-4.1-mini" ,
358358 }
359+ const priorModeApiConfigs = api . getConfiguration ( ) . modeApiConfigs ?? { }
359360 const parentProfileId = await api . upsertProfile ( "subtask-parent-profile" , parentProfile , true )
360361 const childProfileId = await api . upsertProfile ( "subtask-child-profile" , childProfile , false )
361362 await api . setConfiguration ( {
@@ -430,7 +431,7 @@ suite("Roo Code Subtasks", function () {
430431 )
431432 } finally {
432433 api . off ( RooCodeEventName . Message , messageHandler )
433- await api . setConfiguration ( { modeApiConfigs : { } } )
434+ await api . setConfiguration ( { modeApiConfigs : priorModeApiConfigs } )
434435 await api . deleteProfile ( "subtask-child-profile" ) . catch ( ( ) => { } )
435436 await api . deleteProfile ( "subtask-parent-profile" ) . catch ( ( ) => { } )
436437 while ( api . getCurrentTaskStack ( ) . length > 0 ) {
You can’t perform that action at this time.
0 commit comments