zed-industries/zed · error · anyhow::Error
No models available
Error message
No models available
What it means
Sentinel from the NativeAgentModelSelector: list_models is invoked but the connection's model registry has no models loaded (e.g. no providers registered, extensions not loaded, or registry not yet initialized).
Solutions
- Install/enable at least one model provider extension so the registry is populated
- Check API key/credential configuration for the preferred provider
- Wait for provider initialization to complete and retry listing models
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at crates/agent/src/agent.rs:2444 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20).
Data as JSON: /api/errors/7ec32bb5a05e1d6b.
Report an issue: GitHub.
Appendix: source
Thrown at crates/agent/src/agent.rs:2481
/// `<scope>` is either the literal `global` or a worktree root
/// name. The `:` separator namespaces these against MCP server
/// prefixes (which use `.`) so an MCP server literally named
/// `global` or named after a worktree still parses unambiguously.
skill_scope: Option<&'a str>,
}
impl<'a> Command<'a> {
fn is_unqualified(&self, prompt_name: &str) -> bool {
self.prompt_name == prompt_name
&& self.explicit_server_id.is_none()
&& self.skill_scope.is_none()
}
fn parse(prompt: &'a [acp::ContentBlock]) -> Option<Self> {
let acp::ContentBlock::Text(text_content) = prompt.first()? else {
return None;
};
let text = text_content.text.trim();
let command = text.strip_prefix('/')?;
let (command, arg_value) = command
.split_once(char::is_whitespace)
.unwrap_or((command, ""));
// Skill scope qualifier: `/<scope>:<name>`. Checked before the
// MCP `.` grammar because `:` and `.` are different delimiters
// — the two namespaces can't collide. Skill names are
// restricted to `[a-z0-9-]+` (no colons), so the LAST `:` is
// always the scope/name boundary; using `rsplit_once` lets
// scope labels (e.g. a worktree root name) themselves contain
// colons without breaking the parse.
//
// An empty scope (`/:<name>`) is the qualified form for a
// global skill — see `SkillSource::scope_prefix`. The name
// must be non-empty for the colon to be meaningful.
if let Some((scope, prompt_name)) = command.rsplit_once(':')
&& !prompt_name.is_empty()View on GitHub (pinned to 916fc2b8cb)