{"record":{"id":"5083d18d985bb520","repo":"zed-industries/zed","slug":"missing-auto-resolution-outcomes","errorCode":null,"errorMessage":"missing auto-resolution outcomes","messagePattern":"missing auto-resolution outcomes","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/agent/src/thread.rs","lineNumber":6643,"sourceCode":"                    _ = settings_changed.fuse() => {\n                        // On auto-resolve, we dismiss the prompt UI by\n                        // resolving the tool call's `WaitingForConfirmation`\n                        // status with an internal selected outcome. Dropping\n                        // `response_rx` prevents the synthetic response from\n                        // being delivered back into this loop.\n                        match cx.update(|cx| check_settings(cx)) {\n                            ToolPermissionDecision::Allow => {\n                                drop(response_rx);\n                                stream.resolve_tool_call_authorization(\n                                    &tool_call_id,\n                                    auto_allow_outcome.clone(),\n                                );\n                                return Ok(());\n                            }\n                            ToolPermissionDecision::Deny(reason) => {\n                                drop(response_rx);\n                                stream.resolve_tool_call_authorization(\n                                    &tool_call_id,\n                                    auto_deny_outcome.clone(),\n                                );\n                                return Err(anyhow!(reason));\n                            }\n                            ToolPermissionDecision::Confirm => continue,\n                        }\n                    }\n                }\n            }\n        })\n    }\n\n    /// Interprets a `SelectedPermissionOutcome` and persists any settings changes.\n    /// Returns `true` if the tool call should be allowed, `false` if denied.\n    fn persist_permission_outcome(\n        outcome: &acp_thread::SelectedPermissionOutcome,\n        fs: Option<Arc<dyn Fs>>,\n        cx: &AsyncApp,","sourceCodeStart":6625,"sourceCodeEnd":6661,"githubUrl":"https://github.com/zed-industries/zed/blob/916fc2b8cb3a815cbef4a3b40e13081be72036b6/crates/agent/src/thread.rs#L6625-L6661","documentation":"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.","triggerScenarios":"Thrown at crates/agent/src/thread.rs:6507 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass the expected auto-resolution outcomes when constructing the authorization request","Fall back to the interactive prompt path when auto-resolution data is unavailable","Fix the caller that constructs authorizations without the required outcome configuration"],"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"}