Hmbown/CodeWhale · error
plugin ' ' is not installed at
Error message
plugin '{name}' is not installed at {} What it means
`uninstall` requires a plugin bundle directory to exist at the expected target path under the user plugins dir. If nothing is there, it bails with the resolved path so the user can see where it looked. Hand-placed bundles (no `.installed-from` marker) are separately refused with a distinct error.
Solutions
- Check the exact name with `/plugin list` and use that name
- Verify the directory exists under your user plugins dir (`ls <plugins_dir>/<name>`)
- If the registry shows it but the directory is gone, the plugin is already uninstalled — prune the stale state entry instead of uninstalling
Example fix
// before: registry says 'My-Plugin' but dir is 'my-plugin' /plugin uninstall My-Plugin # not installed at .../My-Plugin // after: use the on-disk name /plugin uninstall my-plugin
Defensive patterns
Strategy: validation
Validate before calling
let target = user_plugins_dir.join(name);
if !target.is_dir() {
eprintln!("{} not present under {}", name, user_plugins_dir.display());
return;
} Try / catch
match uninstall(name, dir) {
Err(e) if e.to_string().contains("is not installed at") => {
eprintln!("already uninstalled (or wrong name); check /plugin list");
}
Err(PluginInstallError::NotInstalledHere(_)) => {
eprintln!("hand-placed bundle without marker; remove manually");
}
other => other?,
} Prevention
- Copy names from /plugin list rather than typing them
- Use the same user profile/machine for uninstall as for install
- Clean registry state when deleting plugin directories manually
When it happens
Trigger: Calling `/plugin uninstall <name>` or `install::uninstall(name, user_plugins_dir)` when `<user_plugins_dir>/<name>` does not exist — the plugin was never installed here, already uninstalled, or installed under a different name.
Common situations: Typo in the plugin name; uninstalling on a different machine/profile than the install; a stale registry entry referencing a manually deleted directory.
Understand the failure class
Background: "File not found" and ENOENT errors: why libraries can't find a file that should exist — this error's family across 50 libraries.
Related errors
- plugin ` ` is enabled; disable it first with /plugin disable
- refusing to uninstall the
- active plugin registry is missing its pre-dotenv…
- Agent not found
- Agent not found in the active session
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/971e7631d1e87c1a.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/plugins/install/mod.rs:493
None,
)?;
match outcome {
PluginInstallOutcome::Installed(installed) => Ok(PluginUpdateResult::Updated(installed)),
PluginInstallOutcome::NeedsApproval(host) => Ok(PluginUpdateResult::NeedsApproval(host)),
PluginInstallOutcome::NetworkDenied(host) => Ok(PluginUpdateResult::NetworkDenied(host)),
}
}
/// Remove a plugin installed via `/plugin install`.
///
/// Refuses to touch any directory that doesn't carry the `.installed-from`
/// marker — that's our cue that it's hand-placed and not ours to delete.
/// Callers must require the bundle to be disabled first (the mutation
/// controller does) and prune the registry state entry afterwards.
pub fn uninstall(name: &str, user_plugins_dir: &Path) -> Result<()> {
let target = plugin_target_path(name, user_plugins_dir)?;
if !target.exists() {
bail!("plugin '{name}' is not installed at {}", target.display());
}
ensure_target_within_plugins_dir(&target, user_plugins_dir)?;
if !target.join(INSTALLED_FROM_MARKER).exists() {
return Err(PluginInstallError::NotInstalledHere(name.to_string()).into());
}
fs::remove_dir_all(&target)
.with_context(|| format!("failed to remove {}", target.display()))?;
Ok(())
}
View on GitHub (pinned to 73e0f67d83)