zed-industries/zed · error

Inline assistant error

Error message

Inline assistant error: {}

What it means

Notification path that formats the inline assistant's codegen error into a status message; the interpolated value is the underlying anyhow error from the codegen run (e.g. failed tool protocol), shown to the user in the assist.

Solutions

  1. Read the error text shown with the assist notification for the underlying cause
  2. Retry the inline assist — many provider errors are transient
  3. Check the model provider's status and credentials if errors persist
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at crates/agent_ui/src/inline_assistant.rs:1730 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20). Data as JSON: /api/errors/f8966eafda30e3d0. Report an issue: GitHub.

Appendix: source

Thrown at crates/agent_ui/src/inline_assistant.rs:1730

                            } else {
                                return;
                            };

                            if let CodegenStatus::Error(error) = codegen.read(cx).status(cx)
                                && assist.decorations.is_none()
                                && let Some(workspace) = assist.workspace.upgrade()
                            {
                                #[cfg(any(test, feature = "test-support"))]
                                if let Some(sender) = &mut this._inline_assistant_completions {
                                    sender
                                        .unbounded_send(Err(anyhow::anyhow!(
                                            "Inline assistant error: {}",
                                            error
                                        )))
                                        .ok();
                                }

                                let error = format!("Inline assistant error: {}", error);
                                workspace.update(cx, |workspace, cx| {
                                    struct InlineAssistantError;

                                    let id = NotificationId::composite::<InlineAssistantError>(
                                        assist_id.0,
                                    );

                                    workspace.show_toast(Toast::new(id, error), cx);
                                })
                            } else {
                                #[cfg(any(test, feature = "test-support"))]
                                if let Some(sender) = &mut this._inline_assistant_completions {
                                    sender.unbounded_send(Ok(assist_id)).ok();
                                }
                            }

                            if assist.decorations.is_none() {
                                this.finish_assist(assist_id, false, window, cx);

View on GitHub (pinned to f4178619ac)