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

推荐订阅源

WordPress大学
WordPress大学
博客园 - 司徒正美
Last Week in AI
Last Week in AI
博客园 - 聂微东
Jina AI
Jina AI
月光博客
月光博客
爱范儿
爱范儿
美团技术团队
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 叶小钗
T
Tailwind CSS Blog
博客园 - 【当耐特】
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
有赞技术团队
有赞技术团队
罗磊的独立博客
小众软件
小众软件
雷峰网
雷峰网
IT之家
IT之家
大猫的无限游戏
大猫的无限游戏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio 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(memory): release reindex lock after failed init · ope...
vincentkoc · 2026-06-16 · via Recent Commits to openclaw:main

@@ -387,44 +387,49 @@ export class MemoryIndexManager extends MemoryManagerEmbeddingOps implements Mem

387387

}

388388

this.sources = new Set(effectiveSettings.sources);

389389

this.db = this.openDatabase();

390-

this.providerKey = this.computeProviderKey();

391-

this.cache = {

392-

enabled: effectiveSettings.cache.enabled,

393-

maxEntries: effectiveSettings.cache.maxEntries,

394-

};

395-

this.fts = { enabled: effectiveSettings.query.hybrid.enabled, available: false };

396-

this.ensureSchema();

397-

this.vector = {

398-

enabled: effectiveSettings.store.vector.enabled,

399-

available: null,

400-

extensionPath: effectiveSettings.store.vector.extensionPath,

401-

};

402-

const meta = this.readMeta();

403-

if (meta?.vectorDims) {

404-

this.vector.dims = meta.vectorDims;

405-

}

406-

const initialIndexIdentity = this.resolveCurrentIndexIdentityState({

407-

meta,

408-

providerKeyKnown: Boolean(params.providerResult),

409-

});

410-

this.indexIdentityState = initialIndexIdentity;

411-

this.indexIdentityDirty =

412-

initialIndexIdentity.status === "mismatched" ||

413-

(initialIndexIdentity.status === "missing" && this.sources.has("memory"));

414-

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

415-

if (!transient) {

416-

this.ensureWatcher();

417-

this.ensureSessionListener();

418-

this.ensureIntervalSync();

419-

}

420-

this.dirty = resolveInitialMemoryDirty({

421-

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

422-

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

423-

hasIndexedMeta: Boolean(meta),

424-

});

425-

this.batch = this.resolveBatchConfig();

426-

if (!transient) {

427-

this.ensureSessionStartupCatchup();

390+

try {

391+

this.providerKey = this.computeProviderKey();

392+

this.cache = {

393+

enabled: effectiveSettings.cache.enabled,

394+

maxEntries: effectiveSettings.cache.maxEntries,

395+

};

396+

this.fts = { enabled: effectiveSettings.query.hybrid.enabled, available: false };

397+

this.ensureSchema();

398+

this.vector = {

399+

enabled: effectiveSettings.store.vector.enabled,

400+

available: null,

401+

extensionPath: effectiveSettings.store.vector.extensionPath,

402+

};

403+

const meta = this.readMeta();

404+

if (meta?.vectorDims) {

405+

this.vector.dims = meta.vectorDims;

406+

}

407+

const initialIndexIdentity = this.resolveCurrentIndexIdentityState({

408+

meta,

409+

providerKeyKnown: Boolean(params.providerResult),

410+

});

411+

this.indexIdentityState = initialIndexIdentity;

412+

this.indexIdentityDirty =

413+

initialIndexIdentity.status === "mismatched" ||

414+

(initialIndexIdentity.status === "missing" && this.sources.has("memory"));

415+

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

416+

if (!transient) {

417+

this.ensureWatcher();

418+

this.ensureSessionListener();

419+

this.ensureIntervalSync();

420+

}

421+

this.dirty = resolveInitialMemoryDirty({

422+

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

423+

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

424+

hasIndexedMeta: Boolean(meta),

425+

});

426+

this.batch = this.resolveBatchConfig();

427+

if (!transient) {

428+

this.ensureSessionStartupCatchup();

429+

}

430+

} catch (err) {

431+

closeMemoryDatabase(this.db);

432+

throw err;

428433

}

429434

}

430435