{"record":{"id":"be73e33e82599096","repo":"zed-industries/zed","slug":"no-language-model-configured","errorCode":null,"errorMessage":"no language model configured","messagePattern":"no language model configured","errorType":"exception","errorClass":"NoModelConfiguredError","httpStatus":null,"severity":"error","filePath":"crates/agent/src/thread.rs","lineNumber":2547,"sourceCode":"    ) -> Result<mpsc::UnboundedReceiver<Result<ThreadEvent>>> {\n        self.messages.push(Arc::new(Message::Resume));\n        cx.notify();\n\n        log::debug!(\"Total messages in thread: {}\", self.messages.len());\n        self.run_turn(cx)\n    }\n\n    /// Sending a message results in the model streaming a response, which could include tool calls.\n    /// After calling tools, the model will stops and waits for any outstanding tool calls to be completed and their results sent.\n    /// The returned channel will report all the occurrences in which the model stops before erroring or ending its turn.\n    pub fn send<T>(\n        &mut self,\n        id: ClientUserMessageId,\n        content: impl IntoIterator<Item = T>,\n        cx: &mut Context<Self>,\n    ) -> Result<mpsc::UnboundedReceiver<Result<ThreadEvent>>>\n    where\n        T: Into<UserMessageContent>,\n    {\n        let content = content.into_iter().map(Into::into).collect::<Arc<_>>();\n        log::debug!(\"Thread::send content: {:?}\", content);\n\n        self.messages\n            .push(Arc::new(Message::User(UserMessage { id, content })));\n        cx.notify();\n\n        self.send_existing(cx)\n    }\n\n    pub fn send_existing(\n        &mut self,\n        cx: &mut Context<Self>,\n    ) -> Result<mpsc::UnboundedReceiver<Result<ThreadEvent>>> {\n        let model = self\n            .model()\n            .ok_or_else(|| anyhow!(NoModelConfiguredError))?;","sourceCodeStart":2529,"sourceCodeEnd":2565,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/agent/src/thread.rs#L2529-L2565","documentation":"Error from Thread::send/send_existing: no language model is configured for the thread (model() is None, surfaced via NoModelConfiguredError). The message is queued but the turn cannot start until a model is selected.","triggerScenarios":"Thrown at crates/agent/src/thread.rs:2531 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Select a model in the agent panel before sending the prompt","Configure a default model/provider with valid credentials in settings","Install a model provider extension if none are available"],"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"}