fix(channel): handle plugin channel markdown fallback · openclaw/openclaw@6158742
steipete
·
2026-05-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -80,4 +80,22 @@ describe("message-channel", () => {
|
80 | 80 | ); |
81 | 81 | expect(isMarkdownCapableMessageChannel("demo-markdown-channel")).toBe(true); |
82 | 82 | }); |
| 83 | + |
| 84 | +it("treats registered plugin channels without markdown metadata as plain text", () => { |
| 85 | +setActivePluginRegistry( |
| 86 | +createTestRegistry([ |
| 87 | +{ |
| 88 | +pluginId: "qa-channel", |
| 89 | +plugin: createChannelTestPluginBase({ |
| 90 | +id: "qa-channel", |
| 91 | +label: "QA Channel", |
| 92 | +docsPath: "/channels/qa-channel", |
| 93 | +}), |
| 94 | +source: "test", |
| 95 | +}, |
| 96 | +]), |
| 97 | +); |
| 98 | + |
| 99 | +expect(isMarkdownCapableMessageChannel("qa-channel")).toBe(false); |
| 100 | +}); |
83 | 101 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。