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

推荐订阅源

量子位
WordPress大学
WordPress大学
小众软件
小众软件
云风的 BLOG
云风的 BLOG
IT之家
IT之家
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
博客园 - 【当耐特】
T
Tailwind CSS Blog
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
宝玉的分享
宝玉的分享
博客园 - Franky
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
Hugging Face - Blog
Hugging Face - Blog
Jina AI
Jina AI
D
Docker
博客园 - 聂微东
C
Check Point Blog
H
Help Net Security

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): route bridge CLI through gateway · open...
vincentkoc · 2026-04-28 · via Recent Commits to openclaw:main

@@ -300,6 +300,97 @@ describe("syncMemoryWikiBridgeSources", () => {

300300

});

301301

});

302302303+

it("refuses to overwrite bridge source pages through vault symlinks", async () => {

304+

const workspaceDir = await createBridgeWorkspace("symlink-workspace");

305+

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

306+

rootDir: nextCaseRoot("symlink-vault"),

307+

config: {

308+

vaultMode: "bridge",

309+

bridge: {

310+

enabled: true,

311+

readMemoryArtifacts: true,

312+

indexMemoryRoot: true,

313+

},

314+

},

315+

});

316+

const memoryPath = path.join(workspaceDir, "MEMORY.md");

317+

await fs.writeFile(memoryPath, "# Durable Memory\n", "utf8");

318+

registerBridgeArtifacts([

319+

{

320+

kind: "memory-root",

321+

workspaceDir,

322+

relativePath: "MEMORY.md",

323+

absolutePath: memoryPath,

324+

agentIds: ["main"],

325+

contentType: "markdown",

326+

},

327+

]);

328+

const appConfig: OpenClawConfig = {

329+

agents: {

330+

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

331+

},

332+

};

333+

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

334+

const pagePath = first.pagePaths[0] ?? "";

335+

const pageAbsPath = path.join(vaultDir, pagePath);

336+

const externalTarget = path.join(workspaceDir, "outside.md");

337+

await fs.writeFile(externalTarget, "external target\n", "utf8");

338+

await fs.rm(pageAbsPath);

339+

await fs.symlink(externalTarget, pageAbsPath);

340+

await fs.writeFile(memoryPath, "# Updated Durable Memory\n", "utf8");

341+342+

await expect(syncMemoryWikiBridgeSources({ config, appConfig })).rejects.toThrow(

343+

"Refusing to write imported source page through symlink",

344+

);

345+

await expect(fs.readFile(externalTarget, "utf8")).resolves.toBe("external target\n");

346+

});

347+348+

it("replaces bridge source page hardlinks without clobbering their target", async () => {

349+

const workspaceDir = await createBridgeWorkspace("hardlink-workspace");

350+

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

351+

rootDir: nextCaseRoot("hardlink-vault"),

352+

config: {

353+

vaultMode: "bridge",

354+

bridge: {

355+

enabled: true,

356+

readMemoryArtifacts: true,

357+

indexMemoryRoot: true,

358+

},

359+

},

360+

});

361+

const memoryPath = path.join(workspaceDir, "MEMORY.md");

362+

await fs.writeFile(memoryPath, "# Durable Memory\n", "utf8");

363+

registerBridgeArtifacts([

364+

{

365+

kind: "memory-root",

366+

workspaceDir,

367+

relativePath: "MEMORY.md",

368+

absolutePath: memoryPath,

369+

agentIds: ["main"],

370+

contentType: "markdown",

371+

},

372+

]);

373+

const appConfig: OpenClawConfig = {

374+

agents: {

375+

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

376+

},

377+

};

378+

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

379+

const pagePath = first.pagePaths[0] ?? "";

380+

const pageAbsPath = path.join(vaultDir, pagePath);

381+

const externalTarget = path.join(workspaceDir, "outside-hardlink.md");

382+

await fs.writeFile(externalTarget, "external target\n", "utf8");

383+

await fs.rm(pageAbsPath);

384+

await fs.link(externalTarget, pageAbsPath);

385+

await fs.writeFile(memoryPath, "# Updated Durable Memory\n", "utf8");

386+387+

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

388+389+

expect(second.updatedCount).toBe(1);

390+

await expect(fs.readFile(externalTarget, "utf8")).resolves.toBe("external target\n");

391+

await expect(fs.readFile(pageAbsPath, "utf8")).resolves.toContain("# Updated Durable Memory");

392+

});

393+303394

it("caps composed bridge source filenames to the filesystem component limit", async () => {

304395

const workspaceDir = await createBridgeWorkspace(`${"漢".repeat(50)}-workspace`);

305396

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