{"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":null,"httpStatus":null,"severity":"error","filePath":"crates/agent_ui/src/conversation_view.rs","lineNumber":2110,"sourceCode":"            self.project.clone(),\n            work_dirs,\n            None,\n            cx,\n        );\n\n        cx.spawn_in(window, async move |this, cx| {\n            let subagent_thread = subagent_thread_task.await?;\n            this.update_in(cx, |this, window, cx| {\n                let Some(conversation) = this\n                    .as_connected()\n                    .map(|connected| connected.conversation.clone())\n                else {\n                    return;\n                };\n                let subagent_session_id = subagent_thread.read(cx).session_id().clone();\n                conversation.update(cx, |conversation, cx| {\n                    conversation.register_thread(subagent_thread.clone(), cx);\n                });\n                let view =\n                    this.new_thread_view(subagent_thread, conversation, false, None, window, cx);\n                let Some(connected) = this.as_connected_mut() else {\n                    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,","sourceCodeStart":2092,"sourceCodeEnd":2128,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/agent_ui/src/conversation_view.rs#L2092-L2128","documentation":"Emitted by spawn_external_agent_login when the workspace has no Terminal panel available to run the login command. External agent authentication runs as a task in a terminal; the lookup workspace.panel::<TerminalPanel>(cx) returned None — typically because the terminal panel feature is disabled or has not been instantiated in this workspace. The faulting condition is the absent terminal panel, not the auth method.","triggerScenarios":"Thrown at crates/agent_ui/src/conversation_view.rs:2103 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Open the terminal panel once (e.g. via the terminal: toggle action) before logging in","Ensure the terminal feature is enabled in the workspace","Use the agent's own CLI to complete login outside the editor"],"exampleFix":null,"handlingStrategy":"validation","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"}