zed-industries/zed · error

unexpected selection URI

Error message

unexpected selection URI

What it means

Error "unexpected selection URI" thrown in zed-industries/zed.

Source

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

                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::PastedImage { .. } => {
                debug_panic!("pasted image URI should not be included in completions");
                Task::ready(Err(anyhow!(
                    "pasted imaged URI should not be included in completions"
                )))
            }
            MentionUri::Selection { .. } => {
                debug_panic!("unexpected selection URI");
                Task::ready(Err(anyhow!("unexpected selection URI")))
            }
            MentionUri::TerminalSelection { .. } => {
                debug_panic!("unexpected terminal URI");
                Task::ready(Err(anyhow!("unexpected terminal URI")))
            }
            MentionUri::GitDiff { base_ref } => {
                self.confirm_mention_for_git_diff(base_ref.into(), cx)
            }
            MentionUri::MergeConflict { .. } => {
                debug_panic!("unexpected merge conflict URI");
                Task::ready(Err(anyhow!("unexpected merge conflict URI")))
            }
            MentionUri::Rule { .. } => {
                debug_panic!("unexpected rule URI");
                Task::ready(Err(anyhow!("unexpected rule URI")))
            }
        };
        let task = cx

View on GitHub (pinned to bc538def45)

When it happens

Trigger: Thrown at crates/agent_ui/src/mention_set.rs:338 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/439691d6f8034970. Report an issue: GitHub.