{"record":{"id":"99b2b7b7f3d63d41","repo":"zed-industries/zed","slug":"no-sibling-thread-host-is-registered-this-usually","errorCode":null,"errorMessage":"No sibling-thread host is registered. This usually means the agent panel hasn't been initialized in this workspace.","messagePattern":"No sibling-thread host is registered\\. This usually means the agent panel hasn't been initialized in this workspace\\.","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/agent/src/agent.rs","lineNumber":3343,"sourceCode":"        #[cfg(not(any(target_os = \"linux\", target_os = \"windows\")))]\n        {\n            let temp_dir = self.thread.update(cx, |thread, cx| {\n                thread\n                    .project()\n                    .read(cx)\n                    .is_local()\n                    .then(|| thread.sandboxed_terminal_temp_dir(cx))\n            });\n            match temp_dir {\n                Ok(Some(Ok(temp_dir))) => {\n                    // Canonicalize so the path matches what the sandbox\n                    // resolves symlinks to (e.g. `/var` -> `/private/var` on\n                    // macOS). `$TMPDIR` and the writable-scope entry below must\n                    // agree, and they must agree with the path the kernel\n                    // actually checks.\n                    let temp_dir = temp_dir.canonicalize().unwrap_or(temp_dir);\n                    let temp_dir_string = temp_dir.to_string_lossy().into_owned();\n                    extra_env.extend([\n                        acp::EnvVariable::new(\"TMPDIR\", &temp_dir_string),\n                        acp::EnvVariable::new(\"TMP\", &temp_dir_string),\n                        acp::EnvVariable::new(\"TEMP\", &temp_dir_string),\n                    ]);\n                    // The command's `$TMPDIR` must live inside the sandbox's\n                    // writable scope. The per-thread temp directory is owned\n                    // here (not in the terminal tool that assembles the rest\n                    // of the writable set), so add it whenever the command is\n                    // sandboxed.\n                    if let Some(sandbox_wrap) = &mut sandbox_wrap {\n                        sandbox_wrap.writable_paths.push(temp_dir);\n                    }\n                }\n                Ok(None) => {}\n                Ok(Some(Err(error))) => return Task::ready(Err(error)),\n                Err(error) => return Task::ready(Err(error)),\n            };\n        }","sourceCodeStart":3325,"sourceCodeEnd":3361,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/agent/src/agent.rs#L3325-L3361","documentation":"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.","triggerScenarios":"Thrown at crates/agent/src/agent.rs:3309 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"fallback","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"}