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

推荐订阅源

大猫的无限游戏
大猫的无限游戏
云风的 BLOG
云风的 BLOG
小众软件
小众软件
V
V2EX
博客园 - Franky
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
量子位
博客园 - 【当耐特】
雷峰网
雷峰网
WordPress大学
WordPress大学
Jina AI
Jina AI
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
爱范儿
爱范儿
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
Visual Studio Blog
Microsoft Security Blog
Microsoft Security Blog

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
refactor(channels): remove stale setup reload helpers · o...
vincentkoc · 2026-06-19 · via Recent Commits to openclaw:main

@@ -101,18 +101,13 @@ import type { PluginManifestRecord } from "../../plugins/manifest-registry.js";

101101

import { clearPluginMetadataLifecycleCaches } from "../../plugins/plugin-metadata-lifecycle.js";

102102

import { createEmptyPluginRegistry } from "../../plugins/registry.js";

103103

import {

104-

pinActivePluginChannelRegistry,

105-

releasePinnedPluginChannelRegistry,

106104

setActivePluginRegistry,

107105

} from "../../plugins/runtime.js";

108-

import { createPluginRecord } from "../../plugins/status.test-helpers.js";

109106

import type { WizardPrompter } from "../../wizard/prompts.js";

110107

import { makePrompter, makeRuntime } from "../setup/__tests__/test-utils.js";

111108

import {

112109

ensureChannelSetupPluginInstalled,

113110

loadChannelSetupPluginRegistrySnapshotForChannel,

114-

reloadChannelSetupPluginRegistry,

115-

reloadChannelSetupPluginRegistryForChannel,

116111

} from "./plugin-install.js";

117112118113

const bundledChatNpmSpec = "@openclaw/bundled-chat@1.2.3";

@@ -721,27 +716,7 @@ describe("ensureChannelSetupPluginInstalled", () => {

721716

expect(result.pluginId).toBe("wecom-openclaw-plugin");

722717

});

723718724-

it("reloads the setup plugin registry without using plugin registry cache", () => {

725-

const runtime = makeRuntime();

726-

const cfg: OpenClawConfig = {};

727-728-

reloadChannelSetupPluginRegistry({

729-

cfg,

730-

runtime,

731-

workspaceDir: "/tmp/openclaw-workspace",

732-

});

733-734-

expectLoadOpenClawPluginFields({

735-

config: cfg,

736-

activationSourceConfig: cfg,

737-

autoEnabledReasons: {},

738-

workspaceDir: "/tmp/openclaw-workspace",

739-

cache: false,

740-

includeSetupOnlyChannelPlugins: true,

741-

});

742-

});

743-744-

it("loads the setup plugin registry from the auto-enabled config snapshot", () => {

719+

it("loads setup snapshots from the auto-enabled config snapshot", () => {

745720

const runtime = makeRuntime();

746721

const cfg: OpenClawConfig = {

747722

plugins: {},

@@ -761,9 +736,10 @@ describe("ensureChannelSetupPluginInstalled", () => {

761736

autoEnabledReasons: {},

762737

});

763738764-

reloadChannelSetupPluginRegistry({

739+

loadChannelSetupPluginRegistrySnapshotForChannel({

765740

cfg,

766741

runtime,

742+

channel: "external-chat",

767743

workspaceDir: "/tmp/openclaw-workspace",

768744

});

769745

@@ -775,94 +751,7 @@ describe("ensureChannelSetupPluginInstalled", () => {

775751

config: autoEnabledConfig,

776752

activationSourceConfig: cfg,

777753

autoEnabledReasons: {},

778-

});

779-

});

780-781-

it("scopes channel reloads when setup starts from an empty registry", () => {

782-

const runtime = makeRuntime();

783-

const cfg: OpenClawConfig = {};

784-

getChannelPluginCatalogEntry.mockReturnValue({ pluginId: "@vendor/external-chat-plugin" });

785-786-

reloadChannelSetupPluginRegistryForChannel({

787-

cfg,

788-

runtime,

789-

channel: "external-chat",

790-

workspaceDir: "/tmp/openclaw-workspace",

791-

});

792-793-

expectLoadOpenClawPluginFields({

794-

config: cfg,

795-

activationSourceConfig: cfg,

796-

autoEnabledReasons: {},

797-

workspaceDir: "/tmp/openclaw-workspace",

798-

cache: false,

799-

onlyPluginIds: ["@vendor/external-chat-plugin"],

800-

includeSetupOnlyChannelPlugins: true,

801-

});

802-

expect(getChannelPluginCatalogEntry).toHaveBeenCalledWith("external-chat", {

803-

workspaceDir: "/tmp/openclaw-workspace",

804-

});

805-

});

806-807-

it("does not widen channel reloads when the active plugin registry is already populated", () => {

808-

const runtime = makeRuntime();

809-

const cfg: OpenClawConfig = {};

810-

const registry = createEmptyPluginRegistry();

811-

registry.plugins.push(

812-

createPluginRecord({

813-

id: "loaded",

814-

name: "loaded",

815-

source: "/tmp/loaded.cjs",

816-

origin: "bundled",

817-

configSchema: true,

818-

}),

819-

);

820-

setActivePluginRegistry(registry);

821-822-

reloadChannelSetupPluginRegistryForChannel({

823-

cfg,

824-

runtime,

825-

channel: "external-chat",

826-

workspaceDir: "/tmp/openclaw-workspace",

827-

});

828-829-

expectLoadOpenClawPluginFields({

830-

onlyPluginIds: [],

831-

});

832-

});

833-834-

it("scopes channel reloads when the global registry is populated but the pinned channel registry is empty", () => {

835-

const runtime = makeRuntime();

836-

const cfg: OpenClawConfig = {};

837-

getChannelPluginCatalogEntry.mockReturnValue({ pluginId: "@vendor/external-chat-plugin" });

838-

const activeRegistry = createEmptyPluginRegistry();

839-

activeRegistry.plugins.push(

840-

createPluginRecord({

841-

id: "loaded-tools",

842-

name: "loaded-tools",

843-

source: "/tmp/loaded-tools.cjs",

844-

origin: "bundled",

845-

}),

846-

);

847-

setActivePluginRegistry(activeRegistry);

848-

const pinnedChannelRegistry = createEmptyPluginRegistry();

849-

pinActivePluginChannelRegistry(pinnedChannelRegistry);

850-851-

try {

852-

reloadChannelSetupPluginRegistryForChannel({

853-

cfg,

854-

runtime,

855-

channel: "external-chat",

856-

workspaceDir: "/tmp/openclaw-workspace",

857-

});

858-

} finally {

859-

releasePinnedPluginChannelRegistry(pinnedChannelRegistry);

860-

}

861-862-

expectLoadOpenClawPluginFields({

863-

activationSourceConfig: cfg,

864-

autoEnabledReasons: {},

865-

onlyPluginIds: ["@vendor/external-chat-plugin"],

754+

activate: false,

866755

});

867756

});

868757