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

推荐订阅源

大猫的无限游戏
大猫的无限游戏
云风的 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
fix(plugins): allow Dreaming sidecar through restrictive ...
vincentkoc · 2026-06-16 · via Recent Commits to openclaw:main

@@ -113,15 +113,85 @@ function isGatewayStartupMemoryPlugin(plugin: InstalledPluginIndexRecord): boole

113113

return plugin.startup.memory;

114114

}

115115116-

function resolveGatewayStartupDreamingPluginIds(config: OpenClawConfig): Set<string> {

116+

function resolveGatewayStartupDreamingEngineId(config: OpenClawConfig): string | undefined {

117117

const dreamingConfig = resolveMemoryDreamingConfig({

118118

pluginConfig: resolveMemoryDreamingPluginConfig(config),

119119

cfg: config,

120120

});

121121

if (!dreamingConfig.enabled) {

122+

return undefined;

123+

}

124+

if (!resolveGatewayStartupDreamingSelectedPluginId(config)) {

125+

return undefined;

126+

}

127+

return DEFAULT_MEMORY_DREAMING_PLUGIN_ID;

128+

}

129+130+

function resolveGatewayStartupDreamingSelectedPluginId(config: OpenClawConfig): string | undefined {

131+

const selectedPluginId = normalizeOptionalLowercaseString(resolveMemoryDreamingPluginId(config));

132+

return selectedPluginId && selectedPluginId !== DEFAULT_MEMORY_DREAMING_PLUGIN_ID

133+

? selectedPluginId

134+

: undefined;

135+

}

136+137+

function blocksPluginStartup(params: {

138+

pluginId: string;

139+

pluginsConfig: NormalizedPluginsConfig;

140+

activationSourcePlugins: NormalizedPluginsConfig;

141+

}): boolean {

142+

return (

143+

params.pluginsConfig.deny.includes(params.pluginId) ||

144+

params.activationSourcePlugins.deny.includes(params.pluginId) ||

145+

params.pluginsConfig.entries[params.pluginId]?.enabled === false ||

146+

params.activationSourcePlugins.entries[params.pluginId]?.enabled === false

147+

);

148+

}

149+150+

function resolveAuthorizedGatewayStartupDreamingPluginIds(params: {

151+

config: OpenClawConfig;

152+

pluginsConfig: NormalizedPluginsConfig;

153+

activationSource: {

154+

plugins: NormalizedPluginsConfig;

155+

rootConfig?: OpenClawConfig;

156+

};

157+

activationSourcePlugins: NormalizedPluginsConfig;

158+

selectedMemoryPluginId?: string;

159+

index: { plugins: readonly InstalledPluginIndexRecord[] };

160+

platform?: NodeJS.Platform;

161+

}): Set<string> {

162+

const engineId = resolveGatewayStartupDreamingEngineId(params.config);

163+

const dreamingSelectedPluginId = resolveGatewayStartupDreamingSelectedPluginId(params.config);

164+

if (!engineId || !params.pluginsConfig.enabled || !params.activationSourcePlugins.enabled) {

165+

return new Set();

166+

}

167+

if (

168+

!params.selectedMemoryPluginId ||

169+

params.selectedMemoryPluginId !== dreamingSelectedPluginId ||

170+

params.selectedMemoryPluginId === engineId ||

171+

blocksPluginStartup({

172+

pluginId: engineId,

173+

pluginsConfig: params.pluginsConfig,

174+

activationSourcePlugins: params.activationSourcePlugins,

175+

})

176+

) {

177+

return new Set();

178+

}

179+

const selectedPlugin = params.index.plugins.find(

180+

(plugin) => plugin.pluginId === params.selectedMemoryPluginId,

181+

);

182+

const sidecarPlugin = params.index.plugins.find((plugin) => plugin.pluginId === engineId);

183+

if (!selectedPlugin?.startup.memory || !sidecarPlugin?.startup.memory) {

122184

return new Set();

123185

}

124-

return new Set([DEFAULT_MEMORY_DREAMING_PLUGIN_ID, resolveMemoryDreamingPluginId(config)]);

186+

const activationState = resolveEffectivePluginActivationState({

187+

id: selectedPlugin.pluginId,

188+

origin: selectedPlugin.origin,

189+

config: params.pluginsConfig,

190+

rootConfig: params.config,

191+

enabledByDefault: isPluginEnabledByDefaultForPlatform(selectedPlugin, params.platform),

192+

activationSource: params.activationSource,

193+

});

194+

return activationState.enabled ? new Set([engineId]) : new Set();

125195

}

126196127197

function resolveMemorySlotStartupPluginId(params: {

@@ -913,12 +983,28 @@ export function resolveGatewayStartupMetadataPluginIds(params: {

913983

addPluginConfigEntryIds(scope, pluginsConfig);

914984

addPluginConfigEntryIds(scope, activationSourcePlugins);

915985986+

const memorySlotStartupPluginId = resolveMemorySlotStartupPluginId({

987+

activationSourceConfig,

988+

activationSourcePlugins,

989+

normalizePluginId: lookup.normalizePluginId,

990+

});

916991

addConfiguredSlotPluginIds(scope, {

917992

activationSourceConfig,

918993

activationSourcePlugins,

919994

lookup,

920995

});

921-

for (const pluginId of resolveGatewayStartupDreamingPluginIds(params.config)) {

996+

for (const pluginId of resolveAuthorizedGatewayStartupDreamingPluginIds({

997+

config: params.config,

998+

pluginsConfig,

999+

activationSource: {

1000+

plugins: activationSourcePlugins,

1001+

rootConfig: activationSourceConfig,

1002+

},

1003+

activationSourcePlugins,

1004+

selectedMemoryPluginId: memorySlotStartupPluginId,

1005+

index: params.index,

1006+

platform: params.platform,

1007+

})) {

9221008

scope.add(pluginId);

9231009

}

9241010

if (!lookup.hasCompleteConfigPathActivationMetadata()) {

@@ -1900,7 +1986,6 @@ export function resolveGatewayStartupPluginPlanFromRegistry(params: {

19001986

const requiredAgentHarnessRuntimes = new Set(

19011987

collectConfiguredAgentHarnessRuntimes(activationSourceConfig),

19021988

);

1903-

const startupDreamingPluginIds = resolveGatewayStartupDreamingPluginIds(params.config);

19041989

const configuredSpeechProviderIds = collectConfiguredSpeechProviderIds(activationSourceConfig);

19051990

const configuredWebSearchProviderIds =

19061991

collectConfiguredWebSearchProviderIds(activationSourceConfig);

@@ -1921,6 +2006,15 @@ export function resolveGatewayStartupPluginPlanFromRegistry(params: {

19212006

activationSourcePlugins,

19222007

normalizePluginId,

19232008

});

2009+

const startupDreamingPluginIds = resolveAuthorizedGatewayStartupDreamingPluginIds({

2010+

config: params.config,

2011+

pluginsConfig,

2012+

activationSource,

2013+

activationSourcePlugins,

2014+

selectedMemoryPluginId: memorySlotStartupPluginId,

2015+

index: params.index,

2016+

platform: params.platform,

2017+

});

19242018

const contextEngineSlotStartupPluginId = resolveContextEngineSlotStartupPluginId({

19252019

activationSourceConfig,

19262020

activationSourcePlugins,

@@ -2116,6 +2210,10 @@ export function resolveGatewayStartupPluginPlanFromRegistry(params: {

21162210

) {

21172211

continue;

21182212

}

2213+

if (startupDreamingPluginIds.has(plugin.pluginId)) {

2214+

pluginIds.push(plugin.pluginId);

2215+

continue;

2216+

}

21192217

const activationState = resolveEffectivePluginActivationState({

21202218

id: plugin.pluginId,

21212219

origin: plugin.origin,