Răsfoiți Sursa

test(web): pin the recorded model before scenario overlays

Yichen Jiang 1 săptămână în urmă
părinte
comite
c98fe6ecdd

+ 0 - 1
apps/web/tests/cordis-tool-round.e2e.ts

@@ -75,7 +75,6 @@ describe('web e2e: Cordis tools use their owned cards', () => {
   beforeAll(async () => {
     scaffold = await launchWebScaffold({
       cordisTools: true,
-      extraOverlayPath: fileURLToPath(new URL('./cordis-tool-round.overlay.yml', import.meta.url)),
       compareReplaySession: true,
       ...(MODE === 'record' ? {} : { replayFixture: FIXTURE, paceMs: 15 }),
     })

+ 0 - 5
apps/web/tests/cordis-tool-round.overlay.yml

@@ -1,5 +0,0 @@
-# Keep the recorded Cordis lifecycle on its original model route.
-- id: agent-default-model
-  config:
-    provider: deepseek-official
-    model: deepseek-v4-flash

+ 4 - 0
apps/web/tests/scaffold.ts

@@ -515,6 +515,10 @@ export async function launchWebScaffold(options: LaunchOptions = {}): Promise<We
   const patches: PatchOptions[] = [
     ...basePatches,
     ...surfacePatches,
+    // Keyless scenarios retain the recorded default; explicit scenario overlays win.
+    ...mode === 'record' || options.deepSeekMissingCredential === true
+      ? []
+      : [{ id: 'agent-default-model', config: { provider: 'deepseek-official', model: 'deepseek-v4-flash' } }],
     ...extraOverlayPatches,
     // The roster's shipped presets are the plugin's own, bundled inside
     // `dsh-agent-presets` and prepended by it. Pin only the machine-local