Skip to content

Commit b7648ca

Browse files
committed
fix(plugins): include memory defaults for unlisted agents
1 parent b7d6507 commit b7648ca

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/plugins/channel-plugin-ids.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ describe("resolveGatewayStartupPluginIds", () => {
11771177
["browser", "openai", "ollama", "memory-core"],
11781178
],
11791179
[
1180-
"does not include unused default memory embedding providers when listed agents override memory search",
1180+
"includes default memory embedding providers for unlisted agents even when listed agents override memory search",
11811181
{
11821182
channels: {},
11831183
agents: {
@@ -1190,7 +1190,7 @@ describe("resolveGatewayStartupPluginIds", () => {
11901190
],
11911191
},
11921192
} as OpenClawConfig,
1193-
["browser", "ollama", "memory-core"],
1193+
["browser", "openai", "ollama", "memory-core"],
11941194
],
11951195
[
11961196
"includes default memory embedding providers for listed agents that inherit defaults",

src/plugins/gateway-startup-plugin-ids.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,10 +629,10 @@ export function collectConfiguredMemoryEmbeddingStartupProviderOwners(
629629
});
630630
}
631631
};
632+
addEffectiveProviders(undefined);
632633
const agents = config.agents?.list;
633634
const agentEntries = Array.isArray(agents) ? agents.filter(isRecord) : [];
634635
if (agentEntries.length === 0) {
635-
addEffectiveProviders(undefined);
636636
return [...byConfiguredIdAndSource.values()];
637637
}
638638
for (const agent of agentEntries) {

0 commit comments

Comments
 (0)