Skip to content

Commit 4610768

Browse files
committed
test(subtasks): harness updates
1 parent d7a98bc commit 4610768

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

apps/vscode-e2e/src/fixtures/subtasks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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: [

apps/vscode-e2e/src/suite/subtasks.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)