mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 10:10:22 +00:00
Gateway: treat scope-limited probe RPC as degraded reachability (#45622)
* Gateway: treat scope-limited probe RPC as degraded * Docs: clarify gateway probe degraded scope output * test: fix CI type regressions in gateway and outbound suites * Tests: fix Node24 diffs theme loading and Windows assertions * Tests: fix extension typing after main rebase * Tests: fix Windows CI regressions after rebase * Tests: normalize executable path assertions on Windows * Tests: remove duplicate gateway daemon result alias * Tests: stabilize Windows approval path assertions * Tests: fix Discord rate-limit startup fixture typing * Tests: use Windows-friendly relative exec fixtures --------- Co-authored-by: Mainframe <mainframe@MainfraacStudio.localdomain>
This commit is contained in:
@@ -746,6 +746,14 @@ describe("handleSystemRunInvoke mac app exec host routing", () => {
|
||||
security: "full",
|
||||
ask: "off",
|
||||
});
|
||||
if (process.platform === "win32") {
|
||||
expect(runCommand).not.toHaveBeenCalled();
|
||||
expectInvokeErrorMessage(sendInvokeResult, {
|
||||
message: "SYSTEM_RUN_DENIED: approval requires a stable executable path",
|
||||
exact: true,
|
||||
});
|
||||
return;
|
||||
}
|
||||
expectCommandPinnedToCanonicalPath({
|
||||
runCommand,
|
||||
expected: fs.realpathSync(script),
|
||||
@@ -779,6 +787,13 @@ describe("handleSystemRunInvoke mac app exec host routing", () => {
|
||||
ask: "off",
|
||||
});
|
||||
expect(runCommand).not.toHaveBeenCalled();
|
||||
if (process.platform === "win32") {
|
||||
expectInvokeErrorMessage(sendInvokeResult, {
|
||||
message: "SYSTEM_RUN_DENIED: approval requires a stable executable path",
|
||||
exact: true,
|
||||
});
|
||||
return;
|
||||
}
|
||||
expectInvokeErrorMessage(sendInvokeResult, {
|
||||
message: "SYSTEM_RUN_DENIED: approval cwd changed before execution",
|
||||
exact: true,
|
||||
|
||||
Reference in New Issue
Block a user