Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(plugins): keep net.fetch in the permission list

v_wyxgwang6d9365f9e210
diff --git a/packages/plugin-devkit/src/check.test.ts b/packages/plugin-devkit/src/check.test.ts
index 9b6da0251..14184ecbf 100644
--- a/packages/plugin-devkit/src/check.test.ts
+++ b/packages/plugin-devkit/src/check.test.ts
@@ -76,7 +76,6 @@ describe("check", () => {
m.net = { domains: ["api.example.com", "localhost", "169.254.169.254"] };
});
const result = await check(dir);
- console.log("DEBUG-ERRORS", JSON.stringify(result.errors), JSON.stringify(result.warnings));
expect(result.ok).toBe(true);
const warning = result.warnings.find((w) => w.code === "net.local-domain");
expect(warning?.message).toContain("localhost");
diff --git a/packages/plugin-sdk/src/index.ts b/packages/plugin-sdk/src/index.ts
index b2d5ff2b4..a03301e44 100644
--- a/packages/plugin-sdk/src/index.ts
+++ b/packages/plugin-sdk/src/index.ts
@@ -1317,6 +1317,7 @@ export const PLUGIN_PERMISSIONS = [
// Install-time escape hatch from the net.domains allowlist (issue #1201):
// user-typed endpoints, e.g. a self-hosted server, that no manifest written
// ahead of time can name. Enforced by net-policy's grant-aware checks.
+ "net.fetch",
"net.anyHost",
"shell.openExternal",
"mcp.server.local",