zed-industries/zed · error

missing auto-resolution outcomes

Error message

missing auto-resolution outcomes

What it means

Guard in the auto-resolution authorization path: the caller did not supply the check_settings/automatic outcome data required to resolve the permission prompt without user interaction, so the flow cannot proceed.

Solutions

  1. Pass the expected auto-resolution outcomes when constructing the authorization request
  2. Fall back to the interactive prompt path when auto-resolution data is unavailable
  3. Fix the caller that constructs authorizations without the required outcome configuration
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/agent/src/thread.rs:6507 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/5083d18d985bb520. Report an issue: GitHub.

Appendix: source

Thrown at crates/agent/src/thread.rs:6643

                    _ = settings_changed.fuse() => {
                        // On auto-resolve, we dismiss the prompt UI by
                        // resolving the tool call's `WaitingForConfirmation`
                        // status with an internal selected outcome. Dropping
                        // `response_rx` prevents the synthetic response from
                        // being delivered back into this loop.
                        match cx.update(|cx| check_settings(cx)) {
                            ToolPermissionDecision::Allow => {
                                drop(response_rx);
                                stream.resolve_tool_call_authorization(
                                    &tool_call_id,
                                    auto_allow_outcome.clone(),
                                );
                                return Ok(());
                            }
                            ToolPermissionDecision::Deny(reason) => {
                                drop(response_rx);
                                stream.resolve_tool_call_authorization(
                                    &tool_call_id,
                                    auto_deny_outcome.clone(),
                                );
                                return Err(anyhow!(reason));
                            }
                            ToolPermissionDecision::Confirm => continue,
                        }
                    }
                }
            }
        })
    }

    /// Interprets a `SelectedPermissionOutcome` and persists any settings changes.
    /// Returns `true` if the tool call should be allowed, `false` if denied.
    fn persist_permission_outcome(
        outcome: &acp_thread::SelectedPermissionOutcome,
        fs: Option<Arc<dyn Fs>>,
        cx: &AsyncApp,

View on GitHub (pinned to 916fc2b8cb)