zed-industries/zed · error · NoModelConfiguredError
no language model configured
Error message
no language model configured
What it means
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.
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
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/agent/src/thread.rs:2531 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/be73e33e82599096.
Report an issue: GitHub.
Appendix: source
Thrown at crates/agent/src/thread.rs:2547
) -> Result<mpsc::UnboundedReceiver<Result<ThreadEvent>>> {
self.messages.push(Arc::new(Message::Resume));
cx.notify();
log::debug!("Total messages in thread: {}", self.messages.len());
self.run_turn(cx)
}
/// Sending a message results in the model streaming a response, which could include tool calls.
/// After calling tools, the model will stops and waits for any outstanding tool calls to be completed and their results sent.
/// The returned channel will report all the occurrences in which the model stops before erroring or ending its turn.
pub fn send<T>(
&mut self,
id: ClientUserMessageId,
content: impl IntoIterator<Item = T>,
cx: &mut Context<Self>,
) -> Result<mpsc::UnboundedReceiver<Result<ThreadEvent>>>
where
T: Into<UserMessageContent>,
{
let content = content.into_iter().map(Into::into).collect::<Arc<_>>();
log::debug!("Thread::send content: {:?}", content);
self.messages
.push(Arc::new(Message::User(UserMessage { id, content })));
cx.notify();
self.send_existing(cx)
}
pub fn send_existing(
&mut self,
cx: &mut Context<Self>,
) -> Result<mpsc::UnboundedReceiver<Result<ThreadEvent>>> {
let model = self
.model()
.ok_or_else(|| anyhow!(NoModelConfiguredError))?;View on GitHub (pinned to 916fc2b8cb)