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

This commit is contained in:
Yichen Jiang authored and imccyu committed 2026-09-10 03:39:57 +08:00
1 parent 719331ecb7
commit c98fe6ecdd
3 files changed
+4 -6

No files matched your search

-1
View File
@@ -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 }),
})
@@ -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
View File
@@ -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