zed-industries/zed · error · anyhow::Error
Creating sibling threads is not supported in this…
Error message
Creating sibling threads is not supported in this environment
What it means
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.
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
Defensive patterns
Strategy: type-guard
When it happens
Trigger: Thrown at crates/agent/src/thread.rs:789 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/723ead2c99b7f939.
Report an issue: GitHub.
Appendix: source
Thrown at crates/agent/src/thread.rs:794
fn send(&self, message: String, cx: &AsyncApp) -> Task<Result<String>>;
}
pub trait ThreadEnvironment {
fn create_terminal(
&self,
command: String,
extra_env: Vec<acp::EnvVariable>,
cwd: Option<PathBuf>,
output_byte_limit: Option<u64>,
sandbox_wrap: Option<acp_thread::SandboxWrap>,
cx: &mut AsyncApp,
) -> Task<Result<Rc<dyn TerminalHandle>>>;
fn create_subagent(&self, label: String, cx: &mut App) -> Result<Rc<dyn SubagentHandle>>;
fn resume_subagent(
&self,
_session_id: acp::SessionId,
_cx: &mut App,
) -> Result<Rc<dyn SubagentHandle>> {
Err(anyhow::anyhow!(
"Resuming subagent sessions is not supported"
))
}
/// Creates an independent sibling thread visible in the agent sidebar.
/// Unlike subagents, sibling threads are first-class threads that persist
/// and run in parallel without reporting results back to the parent.
fn create_sibling_thread(
&self,
request: SiblingThreadRequest,
cx: &mut AsyncApp,
) -> Task<Result<SiblingThreadInfo>> {
let _ = request;
let _ = cx;
Task::ready(Err(anyhow::anyhow!(View on GitHub (pinned to 916fc2b8cb)