{"record":{"id":"e9259528d2cf2ab6","repo":"zed-industries/zed","slug":"unsupported-mention-uri-type-for-paste","errorCode":null,"errorMessage":"Unsupported mention URI type for paste","messagePattern":"Unsupported mention URI type for paste","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/agent_ui/src/mention_set.rs","lineNumber":171,"sourceCode":"                include_errors,\n                include_warnings,\n            } => self.confirm_mention_for_diagnostics(include_errors, include_warnings, cx),\n            MentionUri::GitDiff { base_ref } => {\n                self.confirm_mention_for_git_diff(base_ref.into(), cx)\n            }\n            MentionUri::Selection {\n                abs_path: Some(abs_path),\n                line_range,\n                ..\n            } => self.confirm_mention_for_symbol(abs_path, line_range, cx),\n            MentionUri::Selection { abs_path: None, .. } => Task::ready(Err(anyhow!(\n                \"Untitled buffer selection mentions are not supported for paste\"\n            ))),\n            MentionUri::PastedImage { .. }\n            | MentionUri::TerminalSelection { .. }\n            | MentionUri::MergeConflict { .. }\n            | MentionUri::Rule { .. } => {\n                Task::ready(Err(anyhow!(\"Unsupported mention URI type for paste\")))\n            }\n        }\n    }\n\n    pub fn remove_mention(&mut self, crease_id: &CreaseId, cx: &mut App) {\n        self.mentions.remove(crease_id);\n        self.crease_entities.remove(crease_id);\n        self.recompute_disambiguation(cx);\n    }\n\n    pub fn creases(&self) -> HashSet<CreaseId> {\n        self.mentions.keys().cloned().collect()\n    }\n\n    pub fn is_empty(&self) -> bool {\n        self.mentions.is_empty()\n    }\n","sourceCodeStart":153,"sourceCodeEnd":189,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/agent_ui/src/mention_set.rs#L153-L189","documentation":"Error \"Unsupported mention URI type for paste\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/agent_ui/src/mention_set.rs:171 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bc538def4545534201bbfcac4e95ac34ea6501b6","analyzedAt":"2026-08-16T07:30:46.435Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}