This repository was archived by the owner on May 23, 2026. It is now read-only.
Releases: JRedeker/opencode-model-preferences
Releases · JRedeker/opencode-model-preferences
Release list
v0.3.0 — Fix model overwrite and clear
What's Fixed
Model assignments can now be overwritten and cleared properly.
Previously, ApplyPreferences skipped targets with no preference entry, so:
- Clearing a model assignment (via
dor the(none)picker option) never removed themodelkey fromopencode.json - The old model persisted even after the user explicitly cleared it
Changes
- New
cleared_modelsfield inomp-preferences.json— tracks targets whose model was explicitly cleared by the user ApplyPreferencesnow deletes themodelkey fromopencode.jsonfor cleared targets (other fields likemodeare preserved)- Assigning a new model to a previously cleared target removes it from
cleared_models - Updated README and routing spec to document the new clearing behavior
- Added tests for both overwrite and clear scenarios
Config format
{
"target_models": {
"build": "anthropic/claude-opus-4"
},
"cleared_models": {
"scout": true
}
}Upgrade
cd opencode-model-preferences
git pull
make installExisting omp-preferences.json files are fully compatible — the new cleared_models field is optional and defaults to empty.