model.provider: ollama makes every Custom-group model fail with custom:<tag-prefix> not configured

Author: jspanos71Created Oct 1, 2026Updated Oct 1, 2026

With `model.provider: ollama` and a `base_url`, the picker aliases the active provider to `custom`. `model_with_provider_context` then compares the session's `custom` against the raw `ollama`, emits `@custom:qwen3.8:27b`, and `resolve_model_provider` reads `qwen3.8` as a named-provider slug. Reproduced on `dd545190` and still in code on `48186af7`. A local fix returns the bare model when `_resolve_provider_alias(config_provider) == "custom"`.