fix(cli): load plugins for local JSON agent runs · openclaw/openclaw@e94e934
steipete
·
2026-04-29
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -92,6 +92,27 @@ describe("command-startup-policy", () => {
|
92 | 92 | jsonOutputMode: true, |
93 | 93 | }), |
94 | 94 | ).toBe(false); |
| 95 | +expect( |
| 96 | +shouldLoadPluginsForCommandPath({ |
| 97 | +argv: ["node", "openclaw", "agent", "--json"], |
| 98 | +commandPath: ["agent"], |
| 99 | +jsonOutputMode: true, |
| 100 | +}), |
| 101 | +).toBe(false); |
| 102 | +expect( |
| 103 | +shouldLoadPluginsForCommandPath({ |
| 104 | +argv: ["node", "openclaw", "agent", "--json", "--local"], |
| 105 | +commandPath: ["agent"], |
| 106 | +jsonOutputMode: true, |
| 107 | +}), |
| 108 | +).toBe(true); |
| 109 | +expect( |
| 110 | +shouldLoadPluginsForCommandPath({ |
| 111 | +argv: ["node", "openclaw", "agent"], |
| 112 | +commandPath: ["agent"], |
| 113 | +jsonOutputMode: false, |
| 114 | +}), |
| 115 | +).toBe(true); |
95 | 116 | expect( |
96 | 117 | shouldLoadPluginsForCommandPath({ |
97 | 118 | commandPath: ["agents", "list"], |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。