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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
B
Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
J
Java Code Geeks
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain 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
fix: avoid eager channel setup loading · openclaw/opencla...
steipete · 2026-04-26 · via Recent Commits to openclaw:main

@@ -1,10 +1,7 @@

11

import { resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agents/agent-scope.js";

2+

import { getBundledChannelSetupPlugin } from "../channels/plugins/bundled.js";

23

import { resolveChannelDefaultAccountId } from "../channels/plugins/helpers.js";

3-

import {

4-

getChannelSetupPlugin,

5-

listActiveChannelSetupPlugins,

6-

listChannelSetupPlugins,

7-

} from "../channels/plugins/setup-registry.js";

4+

import { listActiveChannelSetupPlugins } from "../channels/plugins/setup-registry.js";

85

import type {

96

ChannelSetupPlugin,

107

ChannelSetupWizardAdapter,

@@ -113,7 +110,6 @@ export async function setupChannels(

113110

): Promise<OpenClawConfig> {

114111

let next = cfg;

115112

const deferStatusUntilSelection = options?.deferStatusUntilSelection === true;

116-

const includeRegistryBeforeSelection = !deferStatusUntilSelection;

117113

const forceAllowFromChannels = new Set(options?.forceAllowFromChannels ?? []);

118114

const accountOverrides: Partial<Record<ChannelChoice, string>> = {

119115

...options?.accountIds,

@@ -131,17 +127,10 @@ export async function setupChannels(

131127

return plugin;

132128

};

133129

const getVisibleChannelPlugin = (channel: ChannelChoice): ChannelSetupPlugin | undefined =>

134-

scopedPluginsById.get(channel) ??

135-

activePluginsById.get(channel) ??

136-

(deferStatusUntilSelection ? undefined : getChannelSetupPlugin(channel));

137-

const listVisibleInstalledPlugins = (params?: {

138-

includeRegistry?: boolean;

139-

}): ChannelSetupPlugin[] => {

140-

const includeRegistry = params?.includeRegistry ?? includeRegistryBeforeSelection;

130+

scopedPluginsById.get(channel) ?? activePluginsById.get(channel);

131+

const listVisibleInstalledPlugins = (): ChannelSetupPlugin[] => {

141132

const merged = new Map<string, ChannelSetupPlugin>();

142-

const registryPlugins = includeRegistry

143-

? listChannelSetupPlugins()

144-

: listActiveChannelSetupPlugins().map(rememberActivePlugin);

133+

const registryPlugins = listActiveChannelSetupPlugins().map(rememberActivePlugin);

145134

for (const plugin of registryPlugins) {

146135

if (shouldShowChannelInSetup(plugin.meta)) {

147136

merged.set(plugin.id, plugin);

@@ -154,10 +143,10 @@ export async function setupChannels(

154143

}

155144

return Array.from(merged.values());

156145

};

157-

const resolveVisibleChannelEntries = (params?: { includeRegistry?: boolean }) =>

146+

const resolveVisibleChannelEntries = () =>

158147

resolveChannelSetupEntries({

159148

cfg: next,

160-

installedPlugins: listVisibleInstalledPlugins(params),

149+

installedPlugins: listVisibleInstalledPlugins(),

161150

workspaceDir: resolveWorkspaceDir(),

162151

});

163152

const loadScopedChannelPlugin = async (

@@ -189,6 +178,11 @@ export async function setupChannels(

189178

rememberScopedPlugin(plugin);

190179

return plugin;

191180

}

181+

const bundledPlugin = getBundledChannelSetupPlugin(channel);

182+

if (bundledPlugin) {

183+

rememberScopedPlugin(bundledPlugin);

184+

return bundledPlugin;

185+

}

192186

return undefined;

193187

};

194188

const getVisibleSetupFlowAdapter = (channel: ChannelChoice) => {

@@ -200,6 +194,7 @@ export async function setupChannels(

200194

};

201195

const preloadConfiguredExternalPlugins = async () => {

202196

// Keep setup memory bounded by snapshot-loading only configured external plugins.

197+

listVisibleInstalledPlugins();

203198

const workspaceDir = resolveWorkspaceDir();

204199

const preloadTasks: Promise<unknown>[] = [];

205200

// Security: keep trusted workspace overrides eligible during setup while

@@ -246,9 +241,7 @@ export async function setupChannels(

246241

return cfg;

247242

}

248243249-

const primerChannels = resolveVisibleChannelEntries({

250-

includeRegistry: includeRegistryBeforeSelection,

251-

}).entries.map((entry) => ({

244+

const primerChannels = resolveVisibleChannelEntries().entries.map((entry) => ({

252245

id: entry.id,

253246

label: entry.meta.label,

254247

blurb: entry.meta.blurb,

@@ -314,9 +307,7 @@ export async function setupChannels(

314307

};

315308316309

const getChannelEntries = () => {

317-

const resolved = resolveVisibleChannelEntries({

318-

includeRegistry: includeRegistryBeforeSelection,

319-

});

310+

const resolved = resolveVisibleChannelEntries();

320311

return {

321312

entries: resolved.entries,

322313

catalogById: resolved.installableCatalogById,

@@ -657,9 +648,7 @@ export async function setupChannels(

657648658649

const selectedLines = resolveChannelSelectionNoteLines({

659650

cfg: next,

660-

installedPlugins: listVisibleInstalledPlugins({

661-

includeRegistry: includeRegistryBeforeSelection,

662-

}),

651+

installedPlugins: listVisibleInstalledPlugins(),

663652

selection,

664653

});

665654

if (selectedLines.length > 0) {