test(qa): avoid redacted config cleanup patch · openclaw/openclaw@264b37e
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -311,6 +311,14 @@ describe("qa scenario catalog", () => {
|
311 | 311 | expect( |
312 | 312 | JSON.stringify(readQaScenarioById("gateway-restart-inflight-run").execution.flow), |
313 | 313 | ).toContain("liveTurnTimeoutMs(env, 180000)"); |
| 314 | +const longContextFlow = JSON.stringify( |
| 315 | +readQaScenarioById("long-context-progress-watchdog").execution.flow, |
| 316 | +); |
| 317 | +expect(longContextFlow).toContain("originalCodexPluginEnabled"); |
| 318 | +expect(longContextFlow).not.toContain( |
| 319 | +"originalPluginAllow === undefined ? null : originalPluginAllow", |
| 320 | +); |
| 321 | +expect(longContextFlow).not.toContain("{ ...originalCodexPluginEntry, enabled:"); |
314 | 322 | expect(readQaScenarioExecutionConfig("long-context-progress-watchdog")).toMatchObject({ |
315 | 323 | requiredProviderMode: "live-frontier", |
316 | 324 | harnessRuntime: "codex", |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,6 +56,9 @@ flow:
|
56 | 56 | - set: originalCodexPluginEntry |
57 | 57 | value: |
58 | 58 | expr: originalSnapshot.config.plugins?.entries?.codex |
| 59 | + - set: originalCodexPluginEnabled |
| 60 | +value: |
| 61 | +expr: "originalCodexPluginEntry && typeof originalCodexPluginEntry === 'object' ? originalCodexPluginEntry.enabled : undefined" |
59 | 62 | - try: |
60 | 63 | actions: |
61 | 64 | - call: patchConfig |
@@ -137,11 +140,10 @@ flow:
|
137 | 140 | ref: env |
138 | 141 | patch: |
139 | 142 | plugins: |
140 | | -allow: |
141 | | -expr: "originalPluginAllow === undefined ? null : originalPluginAllow" |
142 | 143 | entries: |
143 | 144 | codex: |
144 | | -expr: "originalCodexPluginEntry === undefined ? null : { ...originalCodexPluginEntry, enabled: originalCodexPluginEntry.enabled === undefined ? null : originalCodexPluginEntry.enabled }" |
| 145 | +enabled: |
| 146 | +expr: "originalCodexPluginEnabled === undefined ? null : originalCodexPluginEnabled" |
145 | 147 | agents: |
146 | 148 | defaults: |
147 | 149 | models: |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。