cmd_setup rebuilds config.json from the plan, and the reasoning setting isn't part of the plan -- the dashboard writes it into the same file. So every `llmhost update` (setup --yes under the hood) silently put every model back to "Model default", losing a setting the user had chosen in the UI. Carry it over, minus models that no longer fit. The helper exists so the reason is on the record rather than implied by a dict literal; its tests cover the empty and no-longer-fits cases that must not write the key at all. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| backends | ||
| web | ||
| __init__.py | ||
| __main__.py | ||
| catalog.json | ||
| cli.py | ||
| hfcache.py | ||
| hw.py | ||
| opencode.py | ||
| paths.py | ||
| plan.py | ||
| service.py | ||