Agents: use runtime config for commitments command (#74189) · openclaw/openclaw@f569ed0
vignesh07
·
2026-04-30
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ const mocks = vi.hoisted(() => ({
|
7 | 7 | listCommitments: vi.fn(), |
8 | 8 | markCommitmentsStatus: vi.fn(), |
9 | 9 | resolveCommitmentStorePath: vi.fn(() => "/tmp/openclaw-commitments.json"), |
10 | | -loadConfig: vi.fn(() => ({ |
| 10 | +getRuntimeConfig: vi.fn(() => ({ |
11 | 11 | commitments: { |
12 | 12 | store: "/tmp/openclaw-commitments.json", |
13 | 13 | }, |
@@ -21,7 +21,7 @@ vi.mock("../commitments/store.js", () => ({
|
21 | 21 | })); |
22 | 22 | |
23 | 23 | vi.mock("../config/config.js", () => ({ |
24 | | -loadConfig: mocks.loadConfig, |
| 24 | +getRuntimeConfig: mocks.getRuntimeConfig, |
25 | 25 | })); |
26 | 26 | |
27 | 27 | function createRuntime(): { runtime: RuntimeEnv; logs: string[] } { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。