zed-industries/zed · error
Failed to send elicitation request: {error}
Error message
Failed to send elicitation request: {error} What it means
Sending an MCP elicitation request (server asking the user for input) over the event stream failed; the send error is interpolated and the elicitation fails.
Source
Thrown at crates/agent/src/thread.rs:6426
cx: &mut App,
) -> Task<Result<()>> {
// Short-circuit when current settings yield a definitive answer.
if let Some(check) = check_settings.as_ref() {
match check(cx) {
ToolPermissionDecision::Allow => return Task::ready(Ok(())),
ToolPermissionDecision::Deny(reason) => {
return Task::ready(Err(anyhow!(reason)));
}
ToolPermissionDecision::Confirm => {}
}
}
let fs = self.fs.clone();
let stream = self.stream.clone();
let tool_call_id = self.tool_call_id.clone();
let auto_resolution_outcomes = if check_settings.is_some() {
match (
auto_resolve_permission_outcome(&options, true),
auto_resolve_permission_outcome(&options, false),
) {
(Ok(allow), Ok(deny)) => Some((allow, deny)),
(Err(error), _) | (_, Err(error)) => return Task::ready(Err(error)),
}
} else {
None
};
cx.spawn(async move |cx| {
let (response_tx, mut response_rx) = oneshot::channel();
if let Err(error) = stream
.0
.unbounded_send(Ok(ThreadEvent::ToolCallAuthorization(
ToolCallAuthorization {
tool_call: acp::ToolCallUpdate::new(
tool_call_id.clone(),
acp::ToolCallUpdateFields::new().title(title),
),View on GitHub (pinned to 5a9b9558db)
Solutions
- The elicitation request event could not be enqueued because the event stream is closed; fail the elicitation and abort the related tool call
- Retry after confirming the thread/stream is still alive
- Return an error result for the tool so the model knows user input could not be requested
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at crates/agent/src/thread.rs:6423 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of zed-industries/zed@5a9b9558db (2026-08-20).
Data as JSON: /api/errors/84bac37489addb77.
Report an issue: GitHub.