zed-industries/zed · error · anyhow::Error
No sibling-thread host is registered. This usually means…
Error message
No sibling-thread host is registered. This usually means the agent panel hasn't been initialized in this workspace.
What it means
create_sibling_thread found no registered SiblingThreadHost on the agent; this is an initialization-order condition — the agent panel has not been set up in the current workspace, so sibling threads cannot be hosted.
Solutions
- Open/initialize the agent panel in this workspace before creating sibling threads
- Ensure the workspace's agent initialization ran (register the sibling thread host)
- Retry after the panel finishes loading
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at crates/agent/src/agent.rs:3309 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/99b2b7b7f3d63d41.
Report an issue: GitHub.
Appendix: source
Thrown at crates/agent/src/agent.rs:3343
#[cfg(not(any(target_os = "linux", target_os = "windows")))]
{
let temp_dir = self.thread.update(cx, |thread, cx| {
thread
.project()
.read(cx)
.is_local()
.then(|| thread.sandboxed_terminal_temp_dir(cx))
});
match temp_dir {
Ok(Some(Ok(temp_dir))) => {
// Canonicalize so the path matches what the sandbox
// resolves symlinks to (e.g. `/var` -> `/private/var` on
// macOS). `$TMPDIR` and the writable-scope entry below must
// agree, and they must agree with the path the kernel
// actually checks.
let temp_dir = temp_dir.canonicalize().unwrap_or(temp_dir);
let temp_dir_string = temp_dir.to_string_lossy().into_owned();
extra_env.extend([
acp::EnvVariable::new("TMPDIR", &temp_dir_string),
acp::EnvVariable::new("TMP", &temp_dir_string),
acp::EnvVariable::new("TEMP", &temp_dir_string),
]);
// The command's `$TMPDIR` must live inside the sandbox's
// writable scope. The per-thread temp directory is owned
// here (not in the terminal tool that assembles the rest
// of the writable set), so add it whenever the command is
// sandboxed.
if let Some(sandbox_wrap) = &mut sandbox_wrap {
sandbox_wrap.writable_paths.push(temp_dir);
}
}
Ok(None) => {}
Ok(Some(Err(error))) => return Task::ready(Err(error)),
Err(error) => return Task::ready(Err(error)),
};
}View on GitHub (pinned to 916fc2b8cb)