fix(config): refresh Discord component ttl metadata · openclaw/openclaw@9a4fb3e
100menotu001
·
2026-05-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -203,6 +203,31 @@ describe("validateConfigObjectWithPlugins channel metadata (applyDefaults: true)
|
203 | 203 | expect(result.config.channels?.telegram?.dmPolicy).toBe("pairing"); |
204 | 204 | } |
205 | 205 | }); |
| 206 | + |
| 207 | +it("accepts Discord agent component TTL in generated bundled channel metadata", () => { |
| 208 | +const result = validateConfigObjectWithPlugins({ |
| 209 | +channels: { |
| 210 | +discord: { |
| 211 | +agentComponents: { |
| 212 | +ttlMs: 120_000, |
| 213 | +}, |
| 214 | +accounts: { |
| 215 | +work: { |
| 216 | +agentComponents: { |
| 217 | +ttlMs: 60_000, |
| 218 | +}, |
| 219 | +}, |
| 220 | +}, |
| 221 | +}, |
| 222 | +}, |
| 223 | +}); |
| 224 | + |
| 225 | +expect(result.ok).toBe(true); |
| 226 | +if (result.ok) { |
| 227 | +expect(result.config.channels?.discord?.agentComponents?.ttlMs).toBe(120_000); |
| 228 | +expect(result.config.channels?.discord?.accounts?.work?.agentComponents?.ttlMs).toBe(60_000); |
| 229 | +} |
| 230 | +}); |
206 | 231 | }); |
207 | 232 | |
208 | 233 | describe("validateConfigObjectRawWithPlugins channel metadata", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。