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

推荐订阅源

C
Check Point Blog
罗磊的独立博客
量子位
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
M
MIT News - Artificial intelligence
月光博客
月光博客
IT之家
IT之家
D
DataBreaches.Net
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
D
Docker
The GitHub Blog
The GitHub Blog
B
Blog
V
Visual Studio Blog
博客园 - Franky
N
Netflix TechBlog - Medium
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
博客园 - 聂微东
U
Unit 42

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(memory): avoid watchers for memory CLI commands · ope...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -62,6 +62,7 @@ const FTS_TABLE = "chunks_fts";

6262

const EMBEDDING_CACHE_TABLE = "embedding_cache";

6363

const MEMORY_INDEX_MANAGER_CACHE_KEY = Symbol.for("openclaw.memoryIndexManagerCache");

6464

const log = createSubsystemLogger("memory");

65+

type MemoryIndexManagerPurpose = "default" | "status" | "cli";

65666667

const { cache: INDEX_CACHE, pending: INDEX_CACHE_PENDING } =

6768

resolveSingletonManagedCache<MemoryIndexManager>(MEMORY_INDEX_MANAGER_CACHE_KEY);

@@ -155,22 +156,23 @@ export class MemoryIndexManager extends MemoryManagerEmbeddingOps implements Mem

155156

static async get(params: {

156157

cfg: OpenClawConfig;

157158

agentId: string;

158-

purpose?: "default" | "status";

159+

purpose?: MemoryIndexManagerPurpose;

159160

}): Promise<MemoryIndexManager | null> {

160161

const { cfg, agentId } = params;

161162

const settings = resolveMemorySearchConfig(cfg, agentId);

162163

if (!settings) {

163164

return null;

164165

}

165166

const workspaceDir = resolveAgentWorkspaceDir(cfg, agentId);

166-

const purpose = params.purpose === "status" ? "status" : "default";

167+

const purpose =

168+

params.purpose === "status" || params.purpose === "cli" ? params.purpose : "default";

167169

const key = `${agentId}:${workspaceDir}:${JSON.stringify(settings)}:${purpose}`;

168-

const statusOnly = params.purpose === "status";

170+

const transient = purpose === "status" || purpose === "cli";

169171

return await getOrCreateManagedCacheEntry({

170172

cache: INDEX_CACHE,

171173

pending: INDEX_CACHE_PENDING,

172174

key,

173-

bypassCache: statusOnly,

175+

bypassCache: transient,

174176

create: async () =>

175177

new MemoryIndexManager({

176178

cacheKey: key,

@@ -190,7 +192,7 @@ export class MemoryIndexManager extends MemoryManagerEmbeddingOps implements Mem

190192

workspaceDir: string;

191193

settings: ResolvedMemorySearchConfig;

192194

providerResult?: EmbeddingProviderResult;

193-

purpose?: "default" | "status";

195+

purpose?: MemoryIndexManagerPurpose;

194196

}) {

195197

super();

196198

this.cacheKey = params.cacheKey;

@@ -221,15 +223,15 @@ export class MemoryIndexManager extends MemoryManagerEmbeddingOps implements Mem

221223

if (meta?.vectorDims) {

222224

this.vector.dims = meta.vectorDims;

223225

}

224-

const statusOnly = params.purpose === "status";

225-

if (!statusOnly) {

226+

const transient = params.purpose === "status" || params.purpose === "cli";

227+

if (!transient) {

226228

this.ensureWatcher();

227229

this.ensureSessionListener();

228230

this.ensureIntervalSync();

229231

}

230232

this.dirty = resolveInitialMemoryDirty({

231233

hasMemorySource: this.sources.has("memory"),

232-

statusOnly,

234+

statusOnly: params.purpose === "status",

233235

hasIndexedMeta: Boolean(meta),

234236

});

235237

this.batch = this.resolveBatchConfig();