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

推荐订阅源

IT之家
IT之家
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
博客园 - 聂微东
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog RSS Feed
U
Unit 42
Stack Overflow Blog
Stack Overflow Blog
Recent Announcements
Recent Announcements
雷峰网
雷峰网
罗磊的独立博客
Microsoft Security Blog
Microsoft Security Blog
Hugging Face - Blog
Hugging Face - Blog
L
LangChain Blog
人人都是产品经理
人人都是产品经理
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Help Net Security
P
Proofpoint News Feed
The Cloudflare Blog
D
Docker
大猫的无限游戏
大猫的无限游戏

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: use memory slot defaults in core paths · opencl...
steipete · 2026-04-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -7,6 +7,7 @@ import type { OpenClawConfig } from "../config/types.openclaw.js";

77

import type { PluginInstallRecord } from "../config/types.plugins.js";

88

import { enablePluginInConfig } from "../plugins/enable.js";

99

import { listMarketplacePlugins } from "../plugins/marketplace.js";

10+

import { defaultSlotIdForKey } from "../plugins/slots.js";

1011

import { formatPluginSourceForTable, resolvePluginSourceRoots } from "../plugins/source-display.js";

1112

import {

1213

buildAllPluginInspectReports,

@@ -579,7 +580,7 @@ export function registerPluginsCli(program: Command) {

579580

preview.push("load path");

580581

}

581582

if (cfg.plugins?.slots?.memory === pluginId) {

582-

preview.push(`memory slot (will reset to "memory-core")`);

583+

preview.push(`memory slot (will reset to "${defaultSlotIdForKey("memory")}")`);

583584

}

584585

const channelIds = plugin?.status === "loaded" ? plugin.channelIds : undefined;

585586

const channels = cfg.channels as Record<string, unknown> | undefined;

Original file line numberDiff line numberDiff line change

@@ -5,6 +5,7 @@ import { normalizeControlUiBasePath } from "../gateway/control-ui-shared.js";

55

import { resolveGatewayProbeTarget } from "../gateway/probe-target.js";

66

import type { probeGateway as probeGatewayFn } from "../gateway/probe.js";

77

import type { MemoryProviderStatus } from "../memory-host-sdk/engine-storage.js";

8+

import { defaultSlotIdForKey } from "../plugins/slots.js";

89

import {

910

normalizeOptionalLowercaseString,

1011

normalizeOptionalString,

@@ -76,7 +77,7 @@ export function resolveMemoryPluginStatus(cfg: OpenClawConfig): MemoryPluginStat

7677

if (normalizeOptionalLowercaseString(raw) === "none") {

7778

return { enabled: false, slot: null, reason: 'plugins.slots.memory="none"' };

7879

}

79-

return { enabled: true, slot: raw || "memory-core" };

80+

return { enabled: true, slot: raw || defaultSlotIdForKey("memory") };

8081

}

8182
8283

export async function resolveGatewayProbeSnapshot(params: {

Original file line numberDiff line numberDiff line change

@@ -8,6 +8,7 @@ import { resolveMainSessionKey } from "../config/sessions.js";

88

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

99

import { logWarn } from "../logger.js";

1010

import { isTestDefaultMemorySlotDisabled } from "../plugins/config-state.js";

11+

import { defaultSlotIdForKey } from "../plugins/slots.js";

1112

import {

1213

normalizeOptionalLowercaseString,

1314

normalizeOptionalString,

@@ -193,7 +194,7 @@ export async function handleToolsInvokeHttpRequest(

193194

type: "invalid_request",

194195

message:

195196

`memory tools are disabled in tests${suffix}. ` +

196-

'Enable by setting plugins.slots.memory="memory-core" (and ensure plugins.enabled is not false).',

197+

`Enable by setting plugins.slots.memory="${defaultSlotIdForKey("memory")}" (and ensure plugins.enabled is not false).`,

197198

},

198199

});

199200

return true;

Original file line numberDiff line numberDiff line change

@@ -21,6 +21,7 @@ import {

2121

} from "./config-normalization-shared.js";

2222

import { loadPluginManifestRegistry } from "./manifest-registry.js";

2323

import type { PluginOrigin } from "./plugin-origin.types.js";

24+

import { defaultSlotIdForKey } from "./slots.js";

2425
2526

export type { PluginActivationSource };

2627

export type PluginActivationState = PluginActivationStateLike;

@@ -101,7 +102,10 @@ const hasExplicitMemorySlot = (plugins?: OpenClawConfig["plugins"]) =>

101102

Boolean(plugins?.slots && Object.prototype.hasOwnProperty.call(plugins.slots, "memory"));

102103
103104

const hasExplicitMemoryEntry = (plugins?: OpenClawConfig["plugins"]) =>

104-

Boolean(plugins?.entries && Object.prototype.hasOwnProperty.call(plugins.entries, "memory-core"));

105+

Boolean(

106+

plugins?.entries &&

107+

Object.prototype.hasOwnProperty.call(plugins.entries, defaultSlotIdForKey("memory")),

108+

);

105109
106110

export const hasExplicitPluginConfig = (plugins?: OpenClawConfig["plugins"]) =>

107111

hasExplicitPluginConfigShared(plugins);

Original file line numberDiff line numberDiff line change

@@ -2,6 +2,7 @@ import { collectConfiguredAgentHarnessRuntimes } from "../agents/harness-runtime

22

import { listPotentialConfiguredChannelIds } from "../channels/config-presence.js";

33

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

44

import {

5+

DEFAULT_MEMORY_DREAMING_PLUGIN_ID,

56

resolveMemoryDreamingConfig,

67

resolveMemoryDreamingPluginConfig,

78

resolveMemoryDreamingPluginId,

@@ -49,7 +50,7 @@ function resolveGatewayStartupDreamingPluginIds(config: OpenClawConfig): Set<str

4950

if (!dreamingConfig.enabled) {

5051

return new Set();

5152

}

52-

return new Set(["memory-core", resolveMemoryDreamingPluginId(config)]);

53+

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

5354

}

5455
5556

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