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: alias gemini→antigravity at Zod boundary + rewrite fallbackProvider refs during migration
[._.]/ Adam Eivy40b95406a310
diff --git a/server/lib/aiToolkit/providers.js b/server/lib/aiToolkit/providers.jsindex 30a77a6890..3a1a97a265 100644--- a/server/lib/aiToolkit/providers.js+++ b/server/lib/aiToolkit/providers.js@@ -88,6 +88,16 @@ function migrateAntigravityProviders(data) {if (data.activeProvider === mapping.legacyId) {data.activeProvider = mapping.targetId;}++ // Rewrite fallbackProvider references on all other providers so+ // user-defined fallback chains aren't silently broken after the+ // legacy id is removed from the map.+ for (const p of Object.values(data.providers)) {+ if (p.fallbackProvider === mapping.legacyId) {+ p.fallbackProvider = mapping.targetId;+ }+ }+delete data.providers[mapping.legacyId];changed = true;}diff --git a/server/lib/validation.js b/server/lib/validation.jsindex b68c3bdb47..33f7df2c1c 100644--- a/server/lib/validation.js+++ b/server/lib/validation.js@@ -666,10 +666,13 @@ export const createCosTaskSchema = z.object({z.boolean().optional()),reviewer: z.preprocess(- v => v === '' ? undefined : v,+ v => v === '' ? undefined : (typeof v === 'string' ? (REVIEWER_ALIASES[v] ?? v) : v),z.enum(REVIEWER_VALUES).optional()),- reviewers: z.array(z.enum(REVIEWER_VALUES)).optional(),+ reviewers: z.preprocess(+ v => Array.isArray(v) ? v.map(r => (typeof r === 'string' ? (REVIEWER_ALIASES[r] ?? r) : r)) : v,+ z.array(z.enum(REVIEWER_VALUES)).optional()+ ),reviewStopMode: z.enum(REVIEW_STOP_MODES).optional(),reviewerApplies: z.preprocess(v => v === 'true' ? true : v === 'false' ? false : v,@@ -793,7 +796,10 @@ export const featureProviderConfigSchema = z.object({// `lmstudioModel` / `ollamaModel` are the installed model ids the local-LLM// reviewer should run with (empty/undefined = pick the active default model).export const codeReviewSettingsSchema = z.object({- reviewers: z.array(z.enum(REVIEWER_VALUES)).optional(),+ reviewers: z.preprocess(+ v => Array.isArray(v) ? v.map(r => (typeof r === 'string' ? (REVIEWER_ALIASES[r] ?? r) : r)) : v,+ z.array(z.enum(REVIEWER_VALUES)).optional()+ ),stopMode: z.enum(REVIEW_STOP_MODES).optional(),reviewerApplies: z.boolean().optional(),lmstudioModel: z.preprocess(emptyToUndefined, z.string().optional()),