Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: limit retired OpenCode model rewrite to jobs on the CLI/TUI presets (#12896)
Adam Eivy0ca323173242
diff --git a/scripts/migrations/435-retire-opencode-zen-models.js b/scripts/migrations/435-retire-opencode-zen-models.jsindex aeda703dd0..5af55c0333 100644--- a/scripts/migrations/435-retire-opencode-zen-models.js+++ b/scripts/migrations/435-retire-opencode-zen-models.js@@ -59,7 +59,7 @@ async function migrateJobs(rootDir) {if (!Array.isArray(doc?.jobs)) return [];const touched = [];for (const job of doc.jobs) {- const next = replacement(job?.model);+ const next = TARGET_PROVIDER_IDS.includes(job?.providerId) ? replacement(job.model) : null;if (next) { job.model = next; touched.push(job.id); }}if (touched.length) await writeJsonAtomic(path, doc);diff --git a/scripts/migrations/435-retire-opencode-zen-models.test.js b/scripts/migrations/435-retire-opencode-zen-models.test.jsindex 0db244cca2..ec197cd746 100644--- a/scripts/migrations/435-retire-opencode-zen-models.test.js+++ b/scripts/migrations/435-retire-opencode-zen-models.test.js@@ -41,6 +41,7 @@ describe('migration 435 — retire OpenCode Zen model ids the CLI no longer listversion: 1,jobs: [{ id: 'job-a', providerId: 'opencode-zen-tui', model: 'opencode/muse-spark-1.2-contributor-free' },+ { id: 'job-c', providerId: 'opencode-zen', model: 'opencode/mimo-v2.5-free' },{ id: 'job-b', providerId: 'opencode-zen-tui', model: 'opencode/big-pickle' },],});@@ -57,7 +58,7 @@ describe('migration 435 — retire OpenCode Zen model ids the CLI no longer listexpect(providers['opencode-zen-cli'].heavyModel).toBe('opencode/big-pickle');expect(providers['opencode-zen-tui'].models).toEqual(['opencode/mimo-v2.6-flash-free', 'opencode/custom']);expect(providers['opencode-zen'].models).toEqual(['opencode/mimo-v2.5-free']);- expect(readJson(jobsPath).jobs.map((j) => j.model)).toEqual(['opencode/glm-5.3-flash-free', 'opencode/big-pickle']);+ expect(readJson(jobsPath).jobs.map((j) => j.model)).toEqual(['opencode/glm-5.3-flash-free', 'opencode/mimo-v2.5-free', 'opencode/big-pickle']);await expect(migration.up({ rootDir })).resolves.toEqual({ ok: true, providers: [], jobs: [] });});