{"record":{"id":"bf131f36a7182bbd","repo":"zed-industries/zed","slug":"thread-mentions-are-only-supported-for-the-native","errorCode":null,"errorMessage":"Thread mentions are only supported for the native agent","messagePattern":"Thread mentions are only supported for the native agent","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/agent_ui/src/mention_set.rs","lineNumber":614,"sourceCode":"        // expected. We're leveraging `cx.on_next_frame` to wait 2 frames and\n        // ensure that the layout has been recalculated so that the autoscroll\n        // request actually shows the cursor's new position.\n        cx.on_next_frame(window, move |_, window, cx| {\n            cx.on_next_frame(window, move |_, _, cx| {\n                editor.update(cx, |editor, cx| {\n                    editor.request_autoscroll(Autoscroll::fit(), cx)\n                });\n            });\n        });\n    }\n\n    fn confirm_mention_for_thread(\n        &mut self,\n        id: acp::SessionId,\n        cx: &mut Context<Self>,\n    ) -> Task<Result<Mention>> {\n        let Some(thread_store) = self.thread_store.clone() else {\n            return Task::ready(Err(anyhow!(\n                \"Thread mentions are only supported for the native agent\"\n            )));\n        };\n        let Some(project) = self.project.upgrade() else {\n            return Task::ready(Err(anyhow!(\"project not found\")));\n        };\n\n        let server = Rc::new(agent::NativeAgentServer::new(\n            project.read(cx).fs().clone(),\n            thread_store,\n        ));\n        let delegate =\n            AgentServerDelegate::new(project.read(cx).agent_server_store().clone(), None, None);\n        let connection = server.connect(delegate, project.clone(), cx);\n        cx.spawn(async move |_, cx| {\n            let agent = connection.await?;\n            let agent = agent.downcast::<agent::NativeAgentConnection>().unwrap();\n            let summary = agent","sourceCodeStart":596,"sourceCodeEnd":632,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/agent_ui/src/mention_set.rs#L596-L632","documentation":"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.","triggerScenarios":"Thrown at crates/agent_ui/src/mention_set.rs:614 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}