{"record":{"id":"723ead2c99b7f939","repo":"zed-industries/zed","slug":"creating-sibling-threads-is-not-supported-in-this","errorCode":null,"errorMessage":"Creating sibling threads is not supported in this environment","messagePattern":"Creating sibling threads is not supported in this environment","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/agent/src/thread.rs","lineNumber":794,"sourceCode":"    fn send(&self, message: String, cx: &AsyncApp) -> Task<Result<String>>;\n}\n\npub trait ThreadEnvironment {\n    fn create_terminal(\n        &self,\n        command: String,\n        extra_env: Vec<acp::EnvVariable>,\n        cwd: Option<PathBuf>,\n        output_byte_limit: Option<u64>,\n        sandbox_wrap: Option<acp_thread::SandboxWrap>,\n        cx: &mut AsyncApp,\n    ) -> Task<Result<Rc<dyn TerminalHandle>>>;\n\n    fn create_subagent(&self, label: String, cx: &mut App) -> Result<Rc<dyn SubagentHandle>>;\n\n    fn resume_subagent(\n        &self,\n        _session_id: acp::SessionId,\n        _cx: &mut App,\n    ) -> Result<Rc<dyn SubagentHandle>> {\n        Err(anyhow::anyhow!(\n            \"Resuming subagent sessions is not supported\"\n        ))\n    }\n\n    /// Creates an independent sibling thread visible in the agent sidebar.\n    /// Unlike subagents, sibling threads are first-class threads that persist\n    /// and run in parallel without reporting results back to the parent.\n    fn create_sibling_thread(\n        &self,\n        request: SiblingThreadRequest,\n        cx: &mut AsyncApp,\n    ) -> Task<Result<SiblingThreadInfo>> {\n        let _ = request;\n        let _ = cx;\n        Task::ready(Err(anyhow::anyhow!(","sourceCodeStart":776,"sourceCodeEnd":812,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/agent/src/thread.rs#L776-L812","documentation":"Sentinel returned by the default ThreadEnvironment::create_sibling_thread implementation: this environment does not host independent sibling threads, so the request is refused rather than silently doing nothing.","triggerScenarios":"Thrown at crates/agent/src/thread.rs:789 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use create_subagent if a child task is needed and subagents are supported","Check that the active environment (e.g. native agent in a workspace) supports sibling threads","Implement create_sibling_thread in the concrete environment to add support"],"exampleFix":null,"handlingStrategy":"type-guard","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"}