Skip to content

Commit df96d3f

Browse files
committed
test(e2e): clear the reasoning envelope in the switching suite teardown
1 parent f756aab commit df96d3f

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

‎apps/vscode-e2e/src/suite/thinking-effort-switching.test.ts‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,11 @@ function firstRequestCarrying(requests: CapturedDteRequest[], callId: string): C
7878
suite("set_thinking_effort switching within a task (DTE addendum)", function () {
7979
setDefaultSuiteTimeout(this)
8080

81-
// Replace the provider profile with the defaults (the suite setup replaces it
82-
// again, and saveConfig is a full replacement) so subsequent suites are
83-
// unaffected, including this suite's baseline effort and the experiment flag.
81+
// Restore the provider profile defaults so subsequent suites are unaffected.
82+
// setConfiguration merges per-key into ContextProxy (setValues ->
83+
// updateGlobalState), so the experiment flag and this suite's reasoning
84+
// envelope (enableReasoningEffort + baseline reasoningEffort) are explicitly
85+
// cleared below.
8486
suiteTeardown(async () => {
8587
const aimockUrl = process.env.AIMOCK_URL
8688
const isRecord = process.env.AIMOCK_RECORD === "true"
@@ -90,6 +92,11 @@ suite("set_thinking_effort switching within a task (DTE addendum)", function ()
9092
openRouterModelId: "openai/gpt-4.1",
9193
...(aimockUrl && { openRouterBaseUrl: `${aimockUrl}/v1` }),
9294
experiments: { dynamicThinkingEffort: false },
95+
// Clear this suite's reasoning envelope so later suites do not inherit
96+
// a persisted enableReasoningEffort / reasoningEffort pair (undefined
97+
// deletes the key via Memento.update semantics).
98+
enableReasoningEffort: false,
99+
reasoningEffort: undefined,
93100
})
94101
})
95102

0 commit comments

Comments
 (0)