惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
Y
Y Combinator Blog
博客园_首页
V
Visual Studio Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
Hugging Face - Blog
Hugging Face - Blog
宝玉的分享
宝玉的分享
B
Blog
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
WordPress大学
WordPress大学
L
LangChain Blog
爱范儿
爱范儿
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
Blog — PlanetScale
Blog — PlanetScale
C
Check Point Blog
博客园 - 聂微东
云风的 BLOG
云风的 BLOG
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Help Net Security

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: allow installed plugins through allowlist · openclaw...
steipete · 2026-04-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -44,6 +44,7 @@ Docs: https://docs.openclaw.ai

4444
4545

- Thinking defaults/status: raise the implicit default thinking level for reasoning-capable models from legacy `off`/`low` fallback behavior to a safe provider-supported `medium` equivalent when no explicit config default is set, preserve configured-model reasoning metadata when runtime catalog loading is empty, and make `/status` report the same resolved default as runtime.

4646

- Gateway/model pricing: fetch OpenRouter and LiteLLM pricing asynchronously at startup and extend catalog fetch timeouts to 30 seconds, reducing noisy timeout warnings during slow upstream responses.

47+

- Plugins/install: add newly installed plugin ids to an existing `plugins.allow` list before enabling them, so allowlisted configs load installed plugins after restart.

4748

- Status: show `Fast` in `/status` when fast mode is enabled, including config/default-derived fast mode, and omit it when disabled.

4849

- OpenAI/image generation: detect Azure OpenAI-style image endpoints, use Azure `api-key` auth plus deployment-scoped image URLs, and honor `AZURE_OPENAI_API_VERSION` so image generation and edits work against Azure-hosted OpenAI resources. (#70570) Thanks @zhanggpcsu.

4950

- Models/auth: merge provider-owned default-model additions from `openclaw models auth login` instead of replacing `agents.defaults.models`, so re-authenticating an OAuth provider such as OpenAI Codex no longer wipes other providers' aliases and per-model params. Migrations that must rename keys (Anthropic -> Claude CLI) opt in with `replaceDefaultModels`. Fixes #69414. (#70435) Thanks @neeravmakwana.

Original file line numberDiff line numberDiff line change

@@ -255,6 +255,10 @@ plugin). Other bundled plugins still need `openclaw plugins enable <id>`.

255255

plugins. It is not supported with `--link`, which reuses the source path instead

256256

of copying over a managed install target.

257257
258+

When `plugins.allow` is already set, `openclaw plugins install` adds the

259+

installed plugin id to that allowlist before enabling it, so installs are

260+

immediately loadable after restart.

261+
258262

`openclaw plugins update <id-or-npm-spec>` applies to tracked installs. Passing

259263

an npm package spec with a dist-tag or exact version resolves the package name

260264

back to the tracked plugin record and records the new spec for future updates.

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,64 @@

1+

import { beforeEach, describe, expect, it } from "vitest";

2+

import type { OpenClawConfig } from "../config/config.js";

3+

import {

4+

enablePluginInConfig,

5+

recordPluginInstall,

6+

resetPluginsCliTestState,

7+

writeConfigFile,

8+

} from "./plugins-cli-test-helpers.js";

9+
10+

describe("persistPluginInstall", () => {

11+

beforeEach(() => {

12+

resetPluginsCliTestState();

13+

});

14+
15+

it("adds installed plugins to restrictive allowlists before enabling", async () => {

16+

const { persistPluginInstall } = await import("./plugins-install-persist.js");

17+

const baseConfig = {

18+

plugins: {

19+

allow: ["memory-core"],

20+

},

21+

} as OpenClawConfig;

22+

const enabledConfig = {

23+

plugins: {

24+

allow: ["alpha", "memory-core"],

25+

entries: {

26+

alpha: { enabled: true },

27+

},

28+

},

29+

} as OpenClawConfig;

30+

const persistedConfig = {

31+

plugins: {

32+

...enabledConfig.plugins,

33+

installs: {

34+

alpha: {

35+

source: "npm",

36+

spec: "alpha@1.0.0",

37+

installPath: "/tmp/alpha",

38+

},

39+

},

40+

},

41+

} as OpenClawConfig;

42+
43+

enablePluginInConfig.mockImplementation((...args: unknown[]) => {

44+

const [cfg, pluginId] = args as [OpenClawConfig, string];

45+

expect(pluginId).toBe("alpha");

46+

expect(cfg.plugins?.allow).toEqual(["alpha", "memory-core"]);

47+

return { config: enabledConfig };

48+

});

49+

recordPluginInstall.mockReturnValue(persistedConfig);

50+
51+

const next = await persistPluginInstall({

52+

config: baseConfig,

53+

pluginId: "alpha",

54+

install: {

55+

source: "npm",

56+

spec: "alpha@1.0.0",

57+

installPath: "/tmp/alpha",

58+

},

59+

});

60+
61+

expect(next).toBe(persistedConfig);

62+

expect(writeConfigFile).toHaveBeenCalledWith(persistedConfig);

63+

});

64+

});

Original file line numberDiff line numberDiff line change

@@ -12,6 +12,20 @@ import {

1212

logSlotWarnings,

1313

} from "./plugins-command-helpers.js";

1414
15+

function addInstalledPluginToAllowlist(cfg: OpenClawConfig, pluginId: string): OpenClawConfig {

16+

const allow = cfg.plugins?.allow;

17+

if (!Array.isArray(allow) || allow.length === 0 || allow.includes(pluginId)) {

18+

return cfg;

19+

}

20+

return {

21+

...cfg,

22+

plugins: {

23+

...cfg.plugins,

24+

allow: [...allow, pluginId].toSorted(),

25+

},

26+

};

27+

}

28+
1529

export async function persistPluginInstall(params: {

1630

config: OpenClawConfig;

1731

baseHash?: string;

@@ -20,7 +34,10 @@ export async function persistPluginInstall(params: {

2034

successMessage?: string;

2135

warningMessage?: string;

2236

}): Promise<OpenClawConfig> {

23-

let next = enablePluginInConfig(params.config, params.pluginId).config;

37+

let next = enablePluginInConfig(

38+

addInstalledPluginToAllowlist(params.config, params.pluginId),

39+

params.pluginId,

40+

).config;

2441

next = recordPluginInstall(next, {

2542

pluginId: params.pluginId,

2643

...params.install,