zed-industries/zed · error
Thread mentions are only supported for the native agent
Error message
Thread mentions are only supported for the native agent
What it means
Emitted by confirm_mention_for_thread when the current agent is not the native Zed agent. Thread mentions resolve through the ThreadStore, which only exists for native-agent conversations; external ACP agents have no thread store to look up, so confirming a thread mention against them is refused. The offending condition is the non-native agent connection, not the thread id itself.
Solutions
- Switch the panel to the native Zed agent before mentioning a thread
- Summarize the thread's content as text instead of mentioning it
- Use an external agent's own session-reference mechanism if available
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at crates/agent_ui/src/mention_set.rs:614 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/bf131f36a7182bbd.
Report an issue: GitHub.
Appendix: source
Thrown at crates/agent_ui/src/mention_set.rs:614
// expected. We're leveraging `cx.on_next_frame` to wait 2 frames and
// ensure that the layout has been recalculated so that the autoscroll
// request actually shows the cursor's new position.
cx.on_next_frame(window, move |_, window, cx| {
cx.on_next_frame(window, move |_, _, cx| {
editor.update(cx, |editor, cx| {
editor.request_autoscroll(Autoscroll::fit(), cx)
});
});
});
}
fn confirm_mention_for_thread(
&mut self,
id: acp::SessionId,
cx: &mut Context<Self>,
) -> Task<Result<Mention>> {
let Some(thread_store) = self.thread_store.clone() else {
return Task::ready(Err(anyhow!(
"Thread mentions are only supported for the native agent"
)));
};
let Some(project) = self.project.upgrade() else {
return Task::ready(Err(anyhow!("project not found")));
};
let server = Rc::new(agent::NativeAgentServer::new(
project.read(cx).fs().clone(),
thread_store,
));
let delegate =
AgentServerDelegate::new(project.read(cx).agent_server_store().clone(), None, None);
let connection = server.connect(delegate, project.clone(), cx);
cx.spawn(async move |_, cx| {
let agent = connection.await?;
let agent = agent.downcast::<agent::NativeAgentConnection>().unwrap();
let summary = agentView on GitHub (pinned to f4178619ac)