{"record":{"id":"80cac6a5ed65cfdd","repo":"Hmbown/CodeWhale","slug":"plugin-name-was-installed-from-a-local-path","errorCode":null,"errorMessage":"plugin '{name}' was installed from a local path ({}) and cannot be updated from the network; reinstall it with /plugin install <path>","messagePattern":"plugin '(.+?)' was installed from a local path \\((.+?)\\) and cannot be updated from the network; reinstall it with /plugin install <path>","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tui/src/plugins/install/mod.rs","lineNumber":443,"sourceCode":"    max_size: u64,\n    network: &NetworkPolicy,\n) -> Result<PluginUpdateResult> {\n    let target = plugin_target_path(name, user_plugins_dir)?;\n    if tokio::fs::try_exists(&target).await.unwrap_or(false) {\n        ensure_target_within_plugins_dir(&target, user_plugins_dir)?;\n    }\n    let marker_path = target.join(INSTALLED_FROM_MARKER);\n    if !tokio::fs::try_exists(&marker_path).await.unwrap_or(false) {\n        return Err(PluginInstallError::NotInstalledHere(name.to_string()).into());\n    }\n    let marker_body = tokio::fs::read_to_string(&marker_path)\n        .await\n        .with_context(|| format!(\"failed to read {}\", marker_path.display()))?;\n    let marker: InstalledFromMarker = serde_json::from_str(&marker_body)\n        .with_context(|| format!(\"malformed {INSTALLED_FROM_MARKER} for {name}\"))?;\n    let source = PluginInstallSource::parse(&marker.spec)?;\n    let PluginInstallSource::Remote(remote) = source else {\n        bail!(\n            \"plugin '{name}' was installed from a local path ({}) and cannot be updated from the network; \\\n             reinstall it with /plugin install <path>\",\n            marker.spec\n        );\n    };\n\n    let (bytes, url) = match fetch_tarball(&remote, network, max_size).await? {\n        FetchOutcome::Bytes { bytes, url } => (bytes, url),\n        FetchOutcome::NeedsApproval(host) => {\n            return Ok(PluginUpdateResult::NeedsApproval(host));\n        }\n        FetchOutcome::Denied(host) => return Ok(PluginUpdateResult::NetworkDenied(host)),\n    };\n    if sha256_hex(&bytes) == marker.source_checksum() {\n        return Ok(PluginUpdateResult::NoChange);\n    }\n\n    let outcome = install_remote_bytes(","sourceCodeStart":425,"sourceCodeEnd":461,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/73e0f67d83c59909b571efdfc88c4bc28c309cb1/crates/tui/src/plugins/install/mod.rs#L425-L461","documentation":"`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.","triggerScenarios":"Running `/plugin update <name>` (or the update API) on a plugin whose `InstalledFromMarker.spec` parses to `PluginInstallSource::Local` instead of `Remote`.","commonSituations":"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.","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"],"exampleFix":"// before\n/plugin update myplugin          # local-source install -> error\n// after\n/plugin install /path/to/myplugin  # reinstall from local source","handlingStrategy":"try-catch","validationCode":"let marker = fs::read_to_string(dir.join(\".installed-from\"))?;\nlet is_remote = serde_json::from_str::<serde_json::Value>(&marker)?\n    .get(\"spec\").and_then(|s| s.as_str())\n    .map(|s| s.starts_with(\"http\") || s.starts_with(\"git\"))\n    .unwrap_or(false);\nif !is_remote { eprintln!(\"local-source install: reinstall from path instead of update\"); }","typeGuard":null,"tryCatchPattern":"match update(name, dir).await {\n    Err(e) if e.to_string().contains(\"cannot be updated from the network\") => {\n        eprintln!(\"use /plugin install <path> to refresh this local install\");\n    }\n    other => other?,\n}","preventionTips":["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"],"tags":["plugins","update","unsupported-operation"],"backgroundTag":"unsupported-operation","analyzedSha":"73e0f67d83c59909b571efdfc88c4bc28c309cb1","analyzedAt":"2026-09-22T01:30:00.501Z","contentChangedAt":"2026-09-22T01:30:00.501Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}