DashboardCodeAlways use the same provider and never …

Always use the same provider and never cross-provider

Category: preference
Confidence: 1.00
ID: 019e9f41-df33-7e3c-a1a5-843a62fcbd64
Project ID: ffa98226-3908-4f0c-936b-969018c62abf
Cross-project: No
Recalled in other projects: 2
Source session: (none)
Created: 2026-06-11 21:49:18
Updated: 2026-06-12 00:32:36

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 11 15h ago
opencode 1 8d ago

Content

Same-provider invariant: worker/warmup model ALWAYS uses same provider as session. getWorkerModel(): effectiveProvider = cfg.model?.providerID ?? sessionProviderID ?? 'anthropic'; fallback chain: (1) cfg.model, (2) sessionModelID only if hasKnownDefaults, (3) WORKER_DEFAULTS[effectiveProvider], (4) undefined. Unknown providers → returns undefined. Cross-provider guard in pipeline.ts: detects model/upstream provider mismatch at prompt time, calls recordWorkerFailure('cross-provider') + returns null. Wire protocol resolved from resolveProviderRoute(providerID)?.protocol, NOT hardcoded. Workers must NEVER fall back to config().modelconst model = input.model with NO fallback is correct. Any ?? config().model in worker code is a critical bug.

Move to: