{"record":{"id":"b711d04a5614563d","repo":"zed-industries/zed","slug":"elicitation-channel-closed","errorCode":null,"errorMessage":"elicitation channel closed","messagePattern":"elicitation channel closed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/agent/src/thread.rs","lineNumber":6431,"sourceCode":"                ToolPermissionDecision::Allow => return Task::ready(Ok(())),\n                ToolPermissionDecision::Deny(reason) => {\n                    return Task::ready(Err(anyhow!(reason)));\n                }\n                ToolPermissionDecision::Confirm => {}\n            }\n        }\n\n        let fs = self.fs.clone();\n        let stream = self.stream.clone();\n        let tool_call_id = self.tool_call_id.clone();\n        let auto_resolution_outcomes = if check_settings.is_some() {\n            match (\n                auto_resolve_permission_outcome(&options, true),\n                auto_resolve_permission_outcome(&options, false),\n            ) {\n                (Ok(allow), Ok(deny)) => Some((allow, deny)),\n                (Err(error), _) | (_, Err(error)) => return Task::ready(Err(error)),\n            }\n        } else {\n            None\n        };\n        cx.spawn(async move |cx| {\n            let (response_tx, mut response_rx) = oneshot::channel();\n            if let Err(error) = stream\n                .0\n                .unbounded_send(Ok(ThreadEvent::ToolCallAuthorization(\n                    ToolCallAuthorization {\n                        tool_call: acp::ToolCallUpdate::new(\n                            tool_call_id.clone(),\n                            acp::ToolCallUpdateFields::new().title(title),\n                        ),\n                        options,\n                        response: response_tx,\n                        context,\n                        kind: acp_thread::AuthorizationKind::PermissionGrant,\n                    },","sourceCodeStart":6413,"sourceCodeEnd":6449,"githubUrl":"https://github.com/zed-industries/zed/blob/5a9b9558db01a6b906cec2fb70a797affdc58cdd/crates/agent/src/thread.rs#L6413-L6449","documentation":"Returned when, after successfully sending an ElicitationRequest, the oneshot response channel is closed before the answer arrives (the UI side dropped the request). No elicitation response can ever be produced, so the operation fails with this sentinel.","triggerScenarios":"Thrown at crates/agent/src/thread.rs:6428 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Abort the tool call awaiting elicitation; the response will never arrive","Re-issue the request to trigger a fresh elicitation prompt","Investigate why the requesting UI dropped (thread cancelled, window closed)"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5a9b9558db01a6b906cec2fb70a797affdc58cdd","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}