{"record":{"id":"f8cf0d357e8f5553","repo":"zed-industries/zed","slug":"no-file-found-at-path-abs-path","errorCode":null,"errorMessage":"no file found at path {abs_path:?}","messagePattern":"no file found at path (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/agent_ui/src/agent_ui.rs","lineNumber":147,"sourceCode":"    window: &mut Window,\n    cx: &mut Context<Workspace>,\n) {\n    let project_path = workspace\n        .project()\n        .update(cx, |project, cx| project.find_project_path(&abs_path, cx));\n    let fs = workspace.project().read(cx).fs().clone();\n    let workspace = cx.weak_entity();\n    window\n        .spawn(cx, async move |cx| {\n            let item = if let Some(project_path) = project_path {\n                workspace\n                    .update_in(cx, |workspace, window, cx| {\n                        workspace.open_path(project_path, None, true, window, cx)\n                    })?\n                    .await?\n            } else {\n                let metadata = fs.metadata(&abs_path).await?;\n                anyhow::ensure!(\n                    metadata.is_some_and(|metadata| !metadata.is_dir),\n                    \"no file found at path {abs_path:?}\"\n                );\n                workspace\n                    .update_in(cx, |workspace, window, cx| {\n                        workspace.open_abs_path(\n                            abs_path,\n                            OpenOptions {\n                                focus: Some(true),\n                                ..Default::default()\n                            },\n                            window,\n                            cx,\n                        )\n                    })?\n                    .await?\n            };\n            let Some(point) = point else {","sourceCodeStart":129,"sourceCodeEnd":165,"githubUrl":"https://github.com/zed-industries/zed/blob/9d272b036335401f339d024ea94968fd51016c40/crates/agent_ui/src/agent_ui.rs#L129-L165","documentation":"Logged in open_abs_path_at_point when neither the project's find_project_path nor the subsequent filesystem lookup could locate a file at the given absolute path. The helper is used to open links and @-mentions from assistant messages; the offending input is abs_path from the link/mention URI, which points at a file that no longer exists or was never part of any worktree.","triggerScenarios":"Thrown at crates/agent_ui/src/agent_ui.rs:147 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the file still exists on disk at the linked absolute path","Reopen the project or add the file's directory as a worktree so it is indexed","Regenerate the link or mention from the current file location"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9d272b036335401f339d024ea94968fd51016c40","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}