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

推荐订阅源

F
Fortinet All Blogs
WordPress大学
WordPress大学
The Cloudflare Blog
云风的 BLOG
云风的 BLOG
博客园 - Franky
D
Docker
小众软件
小众软件
阮一峰的网络日志
阮一峰的网络日志
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
MongoDB | Blog
MongoDB | Blog
U
Unit 42
M
MIT News - Artificial intelligence
B
Blog
GbyAI
GbyAI
C
Check Point Blog
P
Proofpoint News Feed
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
IT之家
IT之家
Google DeepMind News
Google DeepMind News
V
V2EX
Stack Overflow Blog
Stack Overflow 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(channels): install externalized same-id adds · opencl...
steipete · 2026-05-16 · via Recent Commits to openclaw:main

@@ -535,18 +535,6 @@ describe("doctor repair sequencing", () => {

535535

],

536536

warnings: [],

537537

});

538-

mocks.maybeRepairStalePluginConfig.mockImplementationOnce((cfg: OpenClawConfig) => ({

539-

config: {

540-

...cfg,

541-

plugins: {

542-

...cfg.plugins,

543-

allow: [],

544-

entries: {},

545-

},

546-

},

547-

changes: ["- plugins.entries: removed 1 stale plugin entry (brave)"],

548-

}));

549-550538

const result = await runDoctorRepairSequence({

551539

state: {

552540

cfg: {

@@ -610,18 +598,30 @@ describe("doctor repair sequencing", () => {

610598

warnings: [

611599

'Failed to install missing configured plugin "brave" from @openclaw/brave-plugin: package install failed',

612600

],

601+

failedPluginIds: ["brave"],

613602

});

614-

mocks.maybeRepairStalePluginConfig.mockImplementationOnce((cfg: OpenClawConfig) => ({

615-

config: {

616-

...cfg,

617-

plugins: {

618-

...cfg.plugins,

619-

allow: [],

620-

entries: {},

621-

},

603+

mocks.maybeRepairStalePluginConfig.mockImplementationOnce(

604+

(

605+

cfg: OpenClawConfig,

606+

_env: NodeJS.ProcessEnv | undefined,

607+

params: { preservePluginIds?: string[] },

608+

) => {

609+

expect(params.preservePluginIds).toEqual(["brave"]);

610+

return {

611+

config: {

612+

...cfg,

613+

plugins: {

614+

...cfg.plugins,

615+

allow: ["brave"],

616+

entries: {

617+

brave: cfg.plugins?.entries?.brave,

618+

},

619+

},

620+

},

621+

changes: ["plugins.entries: removed 1 stale plugin entry (old-plugin)"],

622+

};

622623

},

623-

changes: ["plugins.entries: removed 1 stale plugin entry (brave)"],

624-

}));

624+

);

625625626626

const result = await runDoctorRepairSequence({

627627

state: {

@@ -641,6 +641,9 @@ describe("doctor repair sequencing", () => {

641641

},

642642

},

643643

},

644+

"old-plugin": {

645+

enabled: true,

646+

},

644647

},

645648

},

646649

} as OpenClawConfig,

@@ -660,6 +663,9 @@ describe("doctor repair sequencing", () => {

660663

},

661664

},

662665

},

666+

"old-plugin": {

667+

enabled: true,

668+

},

663669

},

664670

},

665671

} as OpenClawConfig,

@@ -669,12 +675,68 @@ describe("doctor repair sequencing", () => {

669675

doctorFixCommand: "openclaw doctor --fix",

670676

});

671677672-

expect(mocks.maybeRepairStalePluginConfig).not.toHaveBeenCalled();

673678

expect(result.state.candidate.plugins?.allow).toEqual(["brave"]);

674679

expect(result.state.candidate.plugins?.entries?.brave?.enabled).toBe(true);

675-

expect(result.state.pendingChanges).toBe(false);

680+

expect(result.state.candidate.plugins?.entries?.["old-plugin"]).toBeUndefined();

681+

expect(result.state.pendingChanges).toBe(true);

682+

expect(result.changeNotes).toContain(

683+

"plugins.entries: removed 1 stale plugin entry (old-plugin)",

684+

);

676685

expect(result.warningNotes).toStrictEqual([

677686

'Failed to install missing configured plugin "brave" from @openclaw/brave-plugin: package install failed',

678687

]);

679688

});

689+690+

it("preserves configured channels when their install repair fails", async () => {

691+

mocks.repairMissingConfiguredPluginInstalls.mockResolvedValueOnce({

692+

changes: [],

693+

warnings: [

694+

'Failed to install missing configured channel plugin "whatsapp" from @openclaw/whatsapp: package install failed',

695+

],

696+

failedPluginIds: ["whatsapp"],

697+

});

698+

mocks.maybeRepairStalePluginConfig.mockImplementationOnce(

699+

(

700+

cfg: OpenClawConfig,

701+

_env: NodeJS.ProcessEnv | undefined,

702+

params: { preservePluginIds?: string[] },

703+

) => {

704+

expect(params.preservePluginIds).toEqual(["whatsapp"]);

705+

return {

706+

config: cfg,

707+

changes: [],

708+

};

709+

},

710+

);

711+712+

const result = await runDoctorRepairSequence({

713+

state: {

714+

cfg: {

715+

channels: {

716+

whatsapp: {

717+

allowFrom: ["+15555550123"],

718+

},

719+

},

720+

} as OpenClawConfig,

721+

candidate: {

722+

channels: {

723+

whatsapp: {

724+

allowFrom: ["+15555550123"],

725+

},

726+

},

727+

} as OpenClawConfig,

728+

pendingChanges: false,

729+

fixHints: [],

730+

},

731+

doctorFixCommand: "openclaw doctor --fix",

732+

});

733+734+

expect(mocks.maybeRepairStalePluginConfig).toHaveBeenCalledOnce();

735+

expect(result.state.candidate.channels?.whatsapp).toEqual({

736+

allowFrom: ["+15555550123"],

737+

});

738+

expect(result.warningNotes).toStrictEqual([

739+

'Failed to install missing configured channel plugin "whatsapp" from @openclaw/whatsapp: package install failed',

740+

]);

741+

});

680742

});