mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
When a custom provider (e.g. MiniMax) is activated, settings.model still contains the old Anthropic model ID. handleCurrentModel was returning this raw ID as the model name instead of the provider's configured model. Fix handleCurrentModel to use ANTHROPIC_MODEL from env (set by syncToSettings when provider was activated) when no explicit model is set. Also fix getRuntimeSettings to skip passing --model to CLI when a provider is active and model is still the default — the CLI should read ANTHROPIC_MODEL from env instead of receiving a wrong model ID override. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>