fix: keep CLI env diagnostics opt-in · openclaw/openclaw@0bc384f
shakkernerd
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -580,30 +580,6 @@ describe("runCliAgent spawn path", () => {
|
580 | 580 | ); |
581 | 581 | }); |
582 | 582 | |
583 | | -it("logs Gemini CLI runtime env key diagnostics without debug output enabled", async () => { |
584 | | -mockSuccessfulCliRun(); |
585 | | -const infoSpy = vi.spyOn(cliBackendLog, "info"); |
586 | | - |
587 | | -await executePreparedCliRun( |
588 | | -buildPreparedCliRunContext({ |
589 | | -provider: "google-gemini-cli", |
590 | | -model: "gemini-3.1-pro-preview", |
591 | | -runId: "run-gemini-env-diagnostics", |
592 | | -preparedEnv: { |
593 | | -GEMINI_CLI_HOME: "/tmp/openclaw-gemini-profile-home", |
594 | | -GEMINI_CLI_SYSTEM_SETTINGS_PATH: "/tmp/openclaw-gemini-system-settings.json", |
595 | | -}, |
596 | | -}), |
597 | | -); |
598 | | - |
599 | | -const envLog = infoSpy.mock.calls |
600 | | -.map((call) => String(call[0])) |
601 | | -.find((line) => line.startsWith("cli env auth:")); |
602 | | -expect(envLog).toContain("runtimeChild=GEMINI_CLI_HOME,GEMINI_CLI_SYSTEM_SETTINGS_PATH"); |
603 | | -expect(envLog).not.toContain("/tmp/openclaw-gemini-profile-home"); |
604 | | -expect(envLog).not.toContain("/tmp/openclaw-gemini-system-settings.json"); |
605 | | -}); |
606 | | - |
607 | 583 | it("passes OpenClaw skills to Claude as a session plugin", async () => { |
608 | 584 | const workspaceDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-cli-skills-")); |
609 | 585 | const skillDir = path.join(workspaceDir, "skills", "weather"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。