{"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":"exception","errorClass":null,"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/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/agent_ui/src/mention_set.rs#L153-L189","documentation":"Catch-all guard in confirm_mention_for_uri reached when a mention URI variant has no paste conversion path (any URI kind not handled by the preceding match arms). It signals that the mention type is structurally unsupported for paste, rather than a problem with the specific input; the offending input is the unhandled MentionUri variant.","triggerScenarios":"Thrown at crates/agent_ui/src/mention_set.rs:171 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported mention type for paste (file, selection in a saved buffer, skill, directory, rule, thread, diagnostics, git diff)","Copy the mention's underlying content manually instead of pasting the mention"],"exampleFix":null,"handlingStrategy":"validation","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-23T08:17:48.524Z"}