Shell env: hide Windows login probe

This commit is contained in:
Brad Groux
2026-05-05 23:27:34 -05:00
parent 41736de923
commit 5527f4d47e
3 changed files with 12 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ Docs: https://docs.openclaw.ai
### Changes
- Shell env/Windows: hide the login-shell environment probe child window so gateway startup and shell-env refreshes do not flash a console on Windows. Fixes #78159.
- MS Teams: surface blocked Bot Framework egress by logging JWKS fetch network failures and adding a Bot Connector send hint for transport-level reply failures. Fixes #77674. (#78081) Thanks @Beandon13.
- PR triage: mark external pull requests with `proof: supplied` when Barnacle finds structured real behavior proof, keep stale negative proof labels in sync across CRLF-edited PR bodies, and let ClawSweeper own the stronger `proof: sufficient` judgement.
- Sessions CLI: show the selected agent runtime in the `openclaw sessions` table so terminal output matches the runtime visibility already present in JSON/status surfaces. Thanks @vincentkoc.

View File

@@ -112,7 +112,11 @@ describe("shell env fallback", () => {
function expectBinShFallbackExec(exec: ReturnType<typeof vi.fn>) {
expect(exec).toHaveBeenCalledTimes(1);
expect(exec).toHaveBeenCalledWith("/bin/sh", ["-l", "-c", "env -0"], expect.any(Object));
expect(exec).toHaveBeenCalledWith(
"/bin/sh",
["-l", "-c", "env -0"],
expect.objectContaining({ windowsHide: true }),
);
}
it("is disabled by default", () => {
@@ -423,7 +427,11 @@ describe("shell env fallback", () => {
expect(res.ok).toBe(true);
expect(exec).toHaveBeenCalledTimes(1);
expect(exec).toHaveBeenCalledWith(trustedShell, ["-l", "-c", "env -0"], expect.any(Object));
expect(exec).toHaveBeenCalledWith(
trustedShell,
["-l", "-c", "env -0"],
expect.objectContaining({ windowsHide: true }),
);
});
});

View File

@@ -92,6 +92,7 @@ function execLoginShellEnvZero(params: {
timeout: params.timeoutMs,
maxBuffer: DEFAULT_MAX_BUFFER_BYTES,
env: params.env,
windowsHide: true,
stdio: ["ignore", "pipe", "pipe"],
});
}