zed-industries/zed · error

Terminal panel is unavailable

Error message

Terminal panel is unavailable

What it means

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.

Solutions

  1. Open the terminal panel once (e.g. via the terminal: toggle action) before logging in
  2. Ensure the terminal feature is enabled in the workspace
  3. Use the agent's own CLI to complete login outside the editor
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/agent_ui/src/conversation_view.rs:2103 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/384d580349825977. Report an issue: GitHub.

Appendix: source

Thrown at crates/agent_ui/src/conversation_view.rs:2110

            self.project.clone(),
            work_dirs,
            None,
            cx,
        );

        cx.spawn_in(window, async move |this, cx| {
            let subagent_thread = subagent_thread_task.await?;
            this.update_in(cx, |this, window, cx| {
                let Some(conversation) = this
                    .as_connected()
                    .map(|connected| connected.conversation.clone())
                else {
                    return;
                };
                let subagent_session_id = subagent_thread.read(cx).session_id().clone();
                conversation.update(cx, |conversation, cx| {
                    conversation.register_thread(subagent_thread.clone(), cx);
                });
                let view =
                    this.new_thread_view(subagent_thread, conversation, false, None, window, cx);
                let Some(connected) = this.as_connected_mut() else {
                    return;
                };
                connected.threads.insert(subagent_session_id, view);
            })
        })
        .detach();
    }

    fn spawn_external_agent_login(
        login: task::SpawnInTerminal,
        workspace: Entity<Workspace>,
        project: Entity<Project>,
        method: acp::AuthMethodId,
        previous_attempt: bool,
        window: &mut Window,

View on GitHub (pinned to 916fc2b8cb)