Hmbown/CodeWhale · error
plugin ' ' was installed from a local path ( ) and cannot…
Error message
plugin '{name}' was installed from a local path ({}) and cannot be updated from the network; reinstall it with /plugin install <path> What it means
`update` reads the `.installed-from` marker and parses its install source. If the plugin was installed from a local path rather than a remote source, it cannot be re-fetched from the network, so updating is refused and the user is told to reinstall from the path instead.
Solutions
- Reinstall from the local path: `/plugin install <original-path>` to refresh the files
- If a remote version exists, uninstall the local install and `/plugin install <remote-url>` so future updates work
- Check the `.installed-from` marker in the plugin directory to confirm the original source
Example fix
// before /plugin update myplugin # local-source install -> error // after /plugin install /path/to/myplugin # reinstall from local source
Defensive patterns
Strategy: try-catch
Validate before calling
let marker = fs::read_to_string(dir.join(".installed-from"))?;
let is_remote = serde_json::from_str::<serde_json::Value>(&marker)?
.get("spec").and_then(|s| s.as_str())
.map(|s| s.starts_with("http") || s.starts_with("git"))
.unwrap_or(false);
if !is_remote { eprintln!("local-source install: reinstall from path instead of update"); } Try / catch
match update(name, dir).await {
Err(e) if e.to_string().contains("cannot be updated from the network") => {
eprintln!("use /plugin install <path> to refresh this local install");
}
other => other?,
} Prevention
- Record the original source path for locally installed plugins
- Prefer remote installs when you plan to use /plugin update
- Check the .installed-from marker before scripting updates
When it happens
Trigger: Running `/plugin update <name>` (or the update API) on a plugin whose `InstalledFromMarker.spec` parses to `PluginInstallSource::Local` instead of `Remote`.
Common situations: A plugin originally installed via `/plugin install ./path` is later updated; a plugin migrated or restored between machines whose marker points at a local path that no longer exists or is not remote.
Understand the failure class
Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.
Related errors
- only user-scope bundles installed via /plugin install can…
- active plugin registry is missing its pre-dotenv…
- Antigravity cloud-code is stream-only; blocking…
- Antigravity cloud-code tools are not implemented yet; send…
- atomic built-in snapshot publication is unsupported on this…
AI-assisted analysis of Hmbown/CodeWhale@73e0f67d83 (2026-09-22).
Data as JSON: /api/errors/80cac6a5ed65cfdd.
Report an issue: GitHub.
Appendix: source
Thrown at crates/tui/src/plugins/install/mod.rs:443
max_size: u64,
network: &NetworkPolicy,
) -> Result<PluginUpdateResult> {
let target = plugin_target_path(name, user_plugins_dir)?;
if tokio::fs::try_exists(&target).await.unwrap_or(false) {
ensure_target_within_plugins_dir(&target, user_plugins_dir)?;
}
let marker_path = target.join(INSTALLED_FROM_MARKER);
if !tokio::fs::try_exists(&marker_path).await.unwrap_or(false) {
return Err(PluginInstallError::NotInstalledHere(name.to_string()).into());
}
let marker_body = tokio::fs::read_to_string(&marker_path)
.await
.with_context(|| format!("failed to read {}", marker_path.display()))?;
let marker: InstalledFromMarker = serde_json::from_str(&marker_body)
.with_context(|| format!("malformed {INSTALLED_FROM_MARKER} for {name}"))?;
let source = PluginInstallSource::parse(&marker.spec)?;
let PluginInstallSource::Remote(remote) = source else {
bail!(
"plugin '{name}' was installed from a local path ({}) and cannot be updated from the network; \
reinstall it with /plugin install <path>",
marker.spec
);
};
let (bytes, url) = match fetch_tarball(&remote, network, max_size).await? {
FetchOutcome::Bytes { bytes, url } => (bytes, url),
FetchOutcome::NeedsApproval(host) => {
return Ok(PluginUpdateResult::NeedsApproval(host));
}
FetchOutcome::Denied(host) => return Ok(PluginUpdateResult::NetworkDenied(host)),
};
if sha256_hex(&bytes) == marker.source_checksum() {
return Ok(PluginUpdateResult::NoChange);
}
let outcome = install_remote_bytes(View on GitHub (pinned to 73e0f67d83)