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

推荐订阅源

M
MIT News - Artificial intelligence
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
The Cloudflare Blog
IT之家
IT之家
雷峰网
雷峰网
小众软件
小众软件
博客园 - 叶小钗
博客园 - 聂微东
爱范儿
爱范儿
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
博客园 - 【当耐特】
V
V2EX
博客园_首页
T
Tailwind CSS 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-wiki bridge self-import loop (#95666) · opencl...
TurboTheTurt · 2026-06-23 · via Recent Commits to openclaw:main

@@ -150,6 +150,78 @@ describe("syncMemoryWikiBridgeSources", () => {

150150

expect(logLines).toHaveLength(2);

151151

});

152152153+

it("skips generated artifacts from its own vault", async () => {

154+

const workspaceDir = await createBridgeWorkspace("self-import-workspace");

155+

const vaultDir = path.join(workspaceDir, "memory", "wiki");

156+

const { config } = await createVault({

157+

rootDir: vaultDir,

158+

config: {

159+

vaultMode: "bridge",

160+

bridge: {

161+

enabled: true,

162+

readMemoryArtifacts: true,

163+

indexDailyNotes: true,

164+

},

165+

},

166+

});

167+168+

const dailyNotePath = path.join(workspaceDir, "memory", "2026-06-22.md");

169+

const generatedSourcePath = path.join(

170+

vaultDir,

171+

"sources",

172+

"bridge-workspace-remote-memory-daily-old.md",

173+

);

174+

const generatedIndexPath = path.join(vaultDir, "index.md");

175+

await fs.mkdir(path.dirname(dailyNotePath), { recursive: true });

176+

await fs.mkdir(path.dirname(generatedSourcePath), { recursive: true });

177+

await fs.writeFile(dailyNotePath, "# Daily Note\n", "utf8");

178+

await fs.writeFile(generatedSourcePath, "# Previously Imported Source\n", "utf8");

179+

await fs.writeFile(generatedIndexPath, "# Generated Index\n", "utf8");

180+181+

registerBridgeArtifacts([

182+

{

183+

kind: "daily-note",

184+

workspaceDir,

185+

relativePath: "memory/2026-06-22.md",

186+

absolutePath: dailyNotePath,

187+

agentIds: ["main"],

188+

contentType: "markdown",

189+

},

190+

{

191+

kind: "daily-note",

192+

workspaceDir,

193+

relativePath: "memory/wiki/sources/bridge-workspace-remote-memory-daily-old.md",

194+

absolutePath: generatedSourcePath,

195+

agentIds: ["main"],

196+

contentType: "markdown",

197+

},

198+

{

199+

kind: "daily-note",

200+

workspaceDir,

201+

relativePath: "memory/wiki/index.md",

202+

absolutePath: generatedIndexPath,

203+

agentIds: ["main"],

204+

contentType: "markdown",

205+

},

206+

]);

207+208+

const appConfig: OpenClawConfig = {

209+

agents: {

210+

list: [{ id: "main", default: true, workspace: workspaceDir }],

211+

},

212+

};

213+214+

const result = await syncMemoryWikiBridgeSources({ config, appConfig });

215+216+

expect(result.artifactCount).toBe(1);

217+

expect(result.importedCount).toBe(1);

218+

expect(result.pagePaths).toHaveLength(1);

219+

expect(result.pagePaths[0]).not.toContain("memory-wiki-sources");

220+

const sourcePages = await fs.readdir(path.join(vaultDir, "sources"));

221+

expect(sourcePages.filter((name) => name.startsWith("bridge-"))).toHaveLength(2);

222+

expect(sourcePages.filter((name) => name.includes("memory-wiki-sources-"))).toEqual([]);

223+

});

224+153225

it("imports bridge artifacts from legacy providers without agent ids", async () => {

154226

const workspaceDir = await createBridgeWorkspace("legacy-agentids-workspace");

155227

const { rootDir: vaultDir, config } = await createVault({