{"record":{"id":"41da30e5862a08ec","repo":"zed-industries/zed","slug":"failed-to-resolve-context-server","errorCode":null,"errorMessage":"Failed to resolve context server","messagePattern":"Failed to resolve context server","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/agent_ui/src/agent_configuration/configure_context_server_modal.rs","lineNumber":528,"sourceCode":"                    match workspace\n                        .update(cx, |workspace, cx| {\n                            resolve_context_server_extension(\n                                server_id,\n                                workspace.project().read(cx).worktree_store(),\n                                cx,\n                            )\n                        })\n                        .ok()\n                    {\n                        Some(task) => task.await,\n                        None => None,\n                    }\n                }\n            };\n\n            match target {\n                Some(target) => Self::show_modal(target, language_registry, workspace, cx).await,\n                None => Err(anyhow::anyhow!(\"Failed to resolve context server\")),\n            }\n        })\n    }\n\n    fn show_modal(\n        target: ConfigurationTarget,\n        language_registry: Arc<LanguageRegistry>,\n        workspace: WeakEntity<Workspace>,\n        cx: &mut AsyncWindowContext,\n    ) -> Task<Result<()>> {\n        cx.spawn(async move |cx| {\n            let jsonc_language = language_registry.language_for_name(\"jsonc\").await.ok();\n            workspace.update_in(cx, |workspace, window, cx| {\n                let workspace_handle = cx.weak_entity();\n                let context_server_store = workspace.project().read(cx).context_server_store();\n                workspace.toggle_modal(window, cx, |window, cx| Self {\n                    context_server_store: context_server_store.clone(),\n                    workspace: workspace_handle,","sourceCodeStart":510,"sourceCodeEnd":546,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/agent_ui/src/agent_configuration/configure_context_server_modal.rs#L510-L546","documentation":"The modal could not determine how to run/configure the context server: both the extension-based resolution and settings-based resolution produced nothing, so the server cannot be resolved to an installable/configurable target.","triggerScenarios":"Thrown at crates/agent_ui/src/agent_configuration/configure_context_server_modal.rs:528 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure the extension providing the context server is installed and up to date","Restart the workspace so extension-based context servers can resolve","Verify the server id matches a context server registered in settings or by an extension"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}