kilocode
kilocode copied to clipboard
Model-not-found error suggests the rejected model ID itself when the kilo/ prefix is omitted
Description
When a model ID is passed without the kilo/ provider prefix, the CLI fails with Model not found and then suggests the exact same ID it just rejected. The suggestion is therefore useless: the user is told "did you mean X?" where X is the string they already typed.
The model does exist and works — it only needs the prefix. So the fix is either to resolve the unprefixed ID, or to suggest the prefixed form.
Component
CLI / TUI
Kilo version
7.8.40
Plugins
None (plain CLI, no plugins)
Steps to reproduce
kilo auth login -p kilo # any Kilo account, free tier is enough
mkdir /tmp/repro && cd /tmp/repro
# 1. prefixed form works
kilo run --auto -m kilo/openrouter/free "Say only: OK"
# -> OK
# 2. same model, prefix omitted -> rejected, and the suggestion is the input itself
kilo run --auto -m openrouter/free "Say only: OK"
# -> Error: Model not found: openrouter/free. Did you mean: openrouter/free, liquid/lfm-3-1.7b:free, recursive/flint-v1.0:free?
# 3. same self-suggestion with another model
kilo run --auto -m nvidia/nemotron-3-ultra-550b-a55b "hi"
# -> Error: Model not found: nvidia/nemotron-3-ultra-550b-a55b. Did you mean: nvidia/nemotron-3-ultra-550b-a55b?
Expected behaviour
Either:
- resolve
openrouter/freetokilo/openrouter/free(thekilo modelslist always prints the prefix, so users copy unprefixed IDs from the docs/website), or - suggest the prefixed candidate:
Did you mean: kilo/openrouter/free?
Never echo the rejected ID back as its own suggestion.
Actual behaviour
Error: Model not found: openrouter/free. Did you mean: openrouter/free, liquid/lfm-3-1.7b:free, recursive/flint-v1.0:free?
Additional context
kilo modelsprints 400 IDs, all prefixed withkilo/(e.g.kilo/openrouter/free), while the website and docs showprovider/model. That mismatch is what pushes users to drop the prefix.- Related but distinct from #11205 (internal agent code passing unprefixed IDs, closed) and #14032 (task tool appending
/): here the input comes from the user and the failure is in the suggestion text, not in resolution. - Environment: macOS 15.8.3, Intel x86_64, Kilo 7.8.40, Kilo Gateway OAuth, free tier (balance $0.00).