{"record":{"id":"0e8f9816095a58ec","repo":"zed-industries/zed","slug":"invalid-model-id","errorCode":null,"errorMessage":"Invalid model ID {}","messagePattern":"Invalid model ID (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/agent/src/agent.rs","lineNumber":2505,"sourceCode":"        // 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()\n        {\n            return Some(Self {\n                prompt_name,\n                arg_value,\n                explicit_server_id: None,\n                skill_scope: Some(scope),\n            });\n        }\n\n        if let Some((server_id, prompt_name)) = command.split_once('.') {\n            Some(Self {\n                prompt_name,\n                arg_value,\n                explicit_server_id: Some(server_id),\n                skill_scope: None,\n            })\n        } else {\n            Some(Self {\n                prompt_name: command,\n                arg_value,\n                explicit_server_id: None,\n                skill_scope: None,\n            })\n        }","sourceCodeStart":2487,"sourceCodeEnd":2523,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/agent/src/agent.rs#L2487-L2523","documentation":"Validation error in NativeAgentModelSelector::select_model: the provided AgentModelId does not map to any model known to the registry (model_from_id returned None). Usually caused by a stale id from a previous session or provider list.","triggerScenarios":"Thrown at crates/agent/src/agent.rs:2468 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-fetch the model list via list_models and select a currently valid id","Update stale UI state that cached model ids from before a provider change","Check that the provider for the id is still installed and enabled"],"exampleFix":null,"handlingStrategy":"validation","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"}