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

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
爱范儿
爱范儿
MongoDB | Blog
MongoDB | Blog
腾讯CDC
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
Engineering at Meta
Engineering at Meta
C
Check Point Blog
N
Netflix TechBlog - Medium
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
GbyAI
GbyAI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
WordPress大学
WordPress大学
博客园 - 司徒正美

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(doctor): archive superseded plugin install index conf...
vincentkoc · 2026-06-16 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1829,6 +1829,71 @@ describe("doctor legacy state migrations", () => {

18291829

});

18301830

});

18311831
1832+

it("archives exact legacy npm install record when SQLite has authoritative resolved metadata", async () => {

1833+

const root = await makeTempRoot();

1834+

await writeExistingPluginInstallIndex(root, {

1835+

discord: {

1836+

source: "npm",

1837+

spec: "@openclaw/discord@latest",

1838+

resolvedName: "@openclaw/discord",

1839+

resolvedVersion: "2026.6.16",

1840+

integrity: "sha512-current",

1841+

installedAt: "2026-06-16T12:00:00.000Z",

1842+

},

1843+

});

1844+

const sourcePath = writeLegacyPluginInstallIndex(root, {

1845+

discord: {

1846+

source: "npm",

1847+

spec: "@openclaw/discord@2026.6.16",

1848+

version: "2026.6.16",

1849+

installedAt: "2026-06-01T12:00:00.000Z",

1850+

},

1851+

});

1852+
1853+

const result = await runLegacyStateMigrationsForRoot(root);

1854+
1855+

expect(result.warnings).toStrictEqual([]);

1856+

expect(fs.existsSync(sourcePath)).toBe(false);

1857+

expect(fs.existsSync(`${sourcePath}.migrated`)).toBe(true);

1858+

await expect(readPersistedInstalledPluginIndex({ stateDir: root })).resolves.toMatchObject({

1859+

installRecords: {

1860+

discord: {

1861+

source: "npm",

1862+

spec: "@openclaw/discord@latest",

1863+

resolvedName: "@openclaw/discord",

1864+

resolvedVersion: "2026.6.16",

1865+

integrity: "sha512-current",

1866+

},

1867+

},

1868+

});

1869+

});

1870+
1871+

it("keeps exact legacy npm install record when SQLite lacks authoritative package identity", async () => {

1872+

const root = await makeTempRoot();

1873+

await writeExistingPluginInstallIndex(root, {

1874+

demo: {

1875+

source: "npm",

1876+

spec: "demo@latest",

1877+

version: "1.0.0",

1878+

},

1879+

});

1880+

const sourcePath = writeLegacyPluginInstallIndex(root, {

1881+

demo: {

1882+

source: "npm",

1883+

spec: "demo@1.0.0",

1884+

version: "1.0.0",

1885+

},

1886+

});

1887+
1888+

const result = await runLegacyStateMigrationsForRoot(root);

1889+
1890+

expect(result.warnings).toStrictEqual([

1891+

"Left plugin install index in place because shared SQLite state has conflicting plugin install metadata for: demo",

1892+

]);

1893+

expect(fs.existsSync(sourcePath)).toBe(true);

1894+

expect(fs.existsSync(`${sourcePath}.migrated`)).toBe(false);

1895+

});

1896+
18321897

for (const fixture of [

18331898

{

18341899

label: "name different packages",