zed-industries/zed · error · anyhow::Error

Untitled buffer selection mentions are not supported for pas

Error message

Untitled buffer selection mentions are not supported for paste

What it means

Error "Untitled buffer selection mentions are not supported for paste" thrown in zed-industries/zed.

Source

Thrown at crates/agent_ui/src/mention_set.rs:164

                line_range,
                ..
            } => self.confirm_mention_for_symbol(abs_path, line_range, cx),
            MentionUri::Skill {
                skill_file_path, ..
            } => self.confirm_mention_for_skill(skill_file_path, cx),
            MentionUri::Diagnostics {
                include_errors,
                include_warnings,
            } => self.confirm_mention_for_diagnostics(include_errors, include_warnings, cx),
            MentionUri::GitDiff { base_ref } => {
                self.confirm_mention_for_git_diff(base_ref.into(), cx)
            }
            MentionUri::Selection {
                abs_path: Some(abs_path),
                line_range,
                ..
            } => self.confirm_mention_for_symbol(abs_path, line_range, cx),
            MentionUri::Selection { abs_path: None, .. } => Task::ready(Err(anyhow!(
                "Untitled buffer selection mentions are not supported for paste"
            ))),
            MentionUri::PastedImage { .. }
            | MentionUri::TerminalSelection { .. }
            | MentionUri::MergeConflict { .. }
            | MentionUri::Rule { .. } => {
                Task::ready(Err(anyhow!("Unsupported mention URI type for paste")))
            }
        }
    }

    pub fn remove_mention(&mut self, crease_id: &CreaseId, cx: &mut App) {
        self.mentions.remove(crease_id);
        self.crease_entities.remove(crease_id);
        self.recompute_disambiguation(cx);
    }

    pub fn creases(&self) -> HashSet<CreaseId> {

View on GitHub (pinned to bc538def45)

When it happens

Trigger: Thrown at crates/agent_ui/src/mention_set.rs:164 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@bc538def45 (2026-08-16). Data as JSON: /api/errors/3fcc8424aeaea37d. Report an issue: GitHub.