Kilo-provider indexing disabled: embedding catalog rejected because two models lack dimension
Component
VS Code extension
Description
Codebase indexing with the Kilo embedding provider never initializes in 7.8.32. The status stays Disabled and the log shows:
WARN service=kilocode-indexing model=openai/text-embedding-3-small ignoring unsupported Kilo embedding model configuration INFO service=kilocode-indexing ... state=Disabled project indexing initialized
The warning is misleading. openai/text-embedding-3-small is present in the Kilo embedding catalog with dimension 1536. The actual failure is that the catalog response contains two models without a dimension field:
perplexity/pplx-embed-v2-context-0.6bperplexity/pplx-embed-v2-context-9b
packages/kilo-gateway/src/api/embedding-models.ts validates every model with dimension: z.number().int().positive(). Because two of the 40 entries lack that field, catalog.safeParse rejects the entire response and fetchKiloEmbeddingModelCatalog returns EMPTY_KILO_EMBEDDING_MODEL_CATALOG.
packages/opencode/src/kilocode/indexing.ts model() then cannot resolve either the configured model or the default mistralai/mistral-embed-2312. It logs the warning and clears modelId/modelDimension. isConfigured() returns false, so the status is Disabled.
This affects any indexing.provider: "kilo" configuration, not just this model. The authenticated catalog request returns the same two entries, so it is not an auth problem. Removing indexing.model only suppresses the warning; the empty catalog still leaves modelId undefined and indexing disabled. The error is silent because model() does not pass onError to fetchKiloEmbeddingModelCatalog.
Suggested fix:
- Parse the catalog leniently and filter out models without a valid positive
dimension, or makedimensionoptional at the catalog boundary and skip those entries during selection. - Alternatively, add dimensions for the two Perplexity entries in the gateway response.
- Pass an
onErrorhandler inpackages/opencode/src/kilocode/indexing.tsmodel()so invalid catalog responses are logged and can be shown in the indexing status. - Add a regression test where one catalog model lacks
dimension; assert that the valid models and the default model still resolve.
Plugins
No response
Kilo version
7.8.32
Steps to reproduce
- Configure
kilo.json:
{
"indexing": {
"enabled": true,
"provider": "kilo",
"model": "openai/text-embedding-3-small"
}
}
- Reload VS Code, or restart the Kilo CLI.
- Check the latest
~/.local/share/kilo/log/*.log: the warning andstate=Disabledappear. - Verify the catalog directly:
curl -s https://ai-gateway.kilo.ai/api/v1/embedding-models \
| jq -r '.models[] | select(has("dimension")|not) | .id'
Expected output:
perplexity/pplx-embed-v2-context-0.6b
perplexity/pplx-embed-v2-context-9b
- Relevant source:
packages/kilo-gateway/src/api/embedding-models.tslines 30-42 and 89-109packages/opencode/src/kilocode/indexing.tslines 102-138
Screenshot and/or share link
No response
Operating System
macOS 27.2.1
Terminal
No response
Same here on 7.8.32 (VS Code extension, macOS arm64) with indexing.provider: "kilo", model: mistralai/mistral-embed-2312 and Qdrant: status stays Disabled with "ignoring unsupported Kilo embedding model configuration". The catalog at /api/gateway/embedding-models still lists perplexity/pplx-embed-v2-context-0.6b and -9b without dimension today (22 Nov 2026). The 7.8.27 CLI has the same strict dimension schema, so downgrading doesn't help; a server-side fix (adding the dimensions or dropping those two entries) would restore indexing for everyone without a release.