{"record":{"id":"3fcc8424aeaea37d","repo":"zed-industries/zed","slug":"untitled-buffer-selection-mentions-are-not-support","errorCode":null,"errorMessage":"Untitled buffer selection mentions are not supported for paste","messagePattern":"Untitled buffer selection mentions are not supported for paste","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/agent_ui/src/mention_set.rs","lineNumber":164,"sourceCode":"                line_range,\n                ..\n            } => self.confirm_mention_for_symbol(abs_path, line_range, cx),\n            MentionUri::Skill {\n                skill_file_path, ..\n            } => self.confirm_mention_for_skill(skill_file_path, cx),\n            MentionUri::Diagnostics {\n                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> {","sourceCodeStart":146,"sourceCodeEnd":182,"githubUrl":"https://github.com/zed-industries/zed/blob/bc538def4545534201bbfcac4e95ac34ea6501b6/crates/agent_ui/src/mention_set.rs#L146-L182","documentation":"Error \"Untitled buffer selection mentions are not supported for paste\" thrown in zed-industries/zed.","triggerScenarios":"Thrown at crates/agent_ui/src/mention_set.rs:164 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"}