{"record":{"id":"7ec32bb5a05e1d6b","repo":"zed-industries/zed","slug":"no-models-available","errorCode":null,"errorMessage":"No models available","messagePattern":"No models available","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/agent/src/agent.rs","lineNumber":2481,"sourceCode":"    /// `<scope>` is either the literal `global` or a worktree root\n    /// name. The `:` separator namespaces these against MCP server\n    /// prefixes (which use `.`) so an MCP server literally named\n    /// `global` or named after a worktree still parses unambiguously.\n    skill_scope: Option<&'a str>,\n}\n\nimpl<'a> Command<'a> {\n    fn is_unqualified(&self, prompt_name: &str) -> bool {\n        self.prompt_name == prompt_name\n            && self.explicit_server_id.is_none()\n            && self.skill_scope.is_none()\n    }\n\n    fn parse(prompt: &'a [acp::ContentBlock]) -> Option<Self> {\n        let acp::ContentBlock::Text(text_content) = prompt.first()? else {\n            return None;\n        };\n        let text = text_content.text.trim();\n        let command = text.strip_prefix('/')?;\n        let (command, arg_value) = command\n            .split_once(char::is_whitespace)\n            .unwrap_or((command, \"\"));\n\n        // Skill scope qualifier: `/<scope>:<name>`. Checked before the\n        // MCP `.` grammar because `:` and `.` are different delimiters\n        // — the two namespaces can't collide. Skill names are\n        // restricted to `[a-z0-9-]+` (no colons), so the LAST `:` is\n        // always the scope/name boundary; using `rsplit_once` lets\n        // scope labels (e.g. a worktree root name) themselves contain\n        // colons without breaking the parse.\n        //\n        // An empty scope (`/:<name>`) is the qualified form for a\n        // global skill — see `SkillSource::scope_prefix`. The name\n        // must be non-empty for the colon to be meaningful.\n        if let Some((scope, prompt_name)) = command.rsplit_once(':')\n            && !prompt_name.is_empty()","sourceCodeStart":2463,"sourceCodeEnd":2499,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/agent/src/agent.rs#L2463-L2499","documentation":"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).","triggerScenarios":"Thrown at crates/agent/src/agent.rs:2444 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"916fc2b8cb3a815cbef4a3b40e13081be72036b6","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}