{"record":{"id":"384d580349825977","repo":"zed-industries/zed","slug":"terminal-panel-is-unavailable","errorCode":null,"errorMessage":"Terminal panel is unavailable","messagePattern":"Terminal panel is unavailable","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/agent_ui/src/conversation_view.rs","lineNumber":2103,"sourceCode":"                    return;\n                };\n                connected.threads.insert(subagent_session_id, view);\n            })\n        })\n        .detach();\n    }\n\n    fn spawn_external_agent_login(\n        login: task::SpawnInTerminal,\n        workspace: Entity<Workspace>,\n        project: Entity<Project>,\n        method: acp::AuthMethodId,\n        previous_attempt: bool,\n        window: &mut Window,\n        cx: &mut App,\n    ) -> Task<Result<()>> {\n        let Some(terminal_panel) = workspace.read(cx).panel::<TerminalPanel>(cx) else {\n            return Task::ready(Err(anyhow!(\"Terminal panel is unavailable\")));\n        };\n\n        window.spawn(cx, async move |cx| {\n            let mut task = login.clone();\n            if let Some(cmd) = &task.command {\n                // Have \"node\" command use Zed's managed Node runtime by default\n                if cmd == \"node\" {\n                    let resolved_node_runtime = project.update(cx, |project, cx| {\n                        let agent_server_store = project.agent_server_store().clone();\n                        agent_server_store.update(cx, |store, cx| {\n                            store.node_runtime().map(|node_runtime| {\n                                cx.background_spawn(async move { node_runtime.binary_path().await })\n                            })\n                        })\n                    });\n\n                    if let Some(resolve_task) = resolved_node_runtime {\n                        if let Ok(node_path) = resolve_task.await {","sourceCodeStart":2085,"sourceCodeEnd":2121,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/agent_ui/src/conversation_view.rs#L2085-L2121","documentation":"Error \"Terminal panel is unavailable\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/agent_ui/src/conversation_view.rs:2103 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bc538def4545534201bbfcac4e95ac34ea6501b6","analyzedAt":"2026-08-16T07:30:46.435Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}