惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
J
Java Code Geeks
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
爱范儿
爱范儿
量子位
N
Netflix TechBlog - Medium
博客园 - 聂微东
博客园 - Franky
aimingoo的专栏
aimingoo的专栏
The Cloudflare Blog
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
Google DeepMind News
Google DeepMind News
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
C
Check Point Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(exec): align release validation checks · openclaw/ope...
joshavant · 2026-05-29 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -466,7 +466,7 @@ export function resolveCodexAppServerRuntimeOptions(

466466

? selectForcedDangerFullAccessSandbox({

467467

configuredSandbox,

468468

defaultPolicy,

469-

openClawSandboxActive: params.openClawSandboxActive === true,

469+

openClawSandboxActive: Boolean(params.openClawSandboxActive),

470470

})

471471

: selectForcedPromptingSandbox({

472472

configuredSandbox,

Original file line numberDiff line numberDiff line change

@@ -1,14 +1,15 @@

11

import fs from "node:fs/promises";

22

import os from "node:os";

33

import path from "node:path";

4+

import type { ExecApprovalsFile } from "openclaw/plugin-sdk/exec-approvals-runtime";

45

import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";

56
67

const sharedClientMocks = vi.hoisted(() => ({

78

getSharedCodexAppServerClient: vi.fn(),

89

}));

910
1011

const execApprovalsRuntimeMocks = vi.hoisted(() => ({

11-

loadExecApprovals: vi.fn(() => ({ version: 1 as const, agents: {} })),

12+

loadExecApprovals: vi.fn<() => ExecApprovalsFile>(() => ({ version: 1, agents: {} })),

1213

}));

1314
1415

const agentRuntimeMocks = vi.hoisted(() => ({

Original file line numberDiff line numberDiff line change

@@ -127,7 +127,7 @@ async function resolveConversationAppServerRuntime(params: {

127127

sessionKey: params.sessionKey,

128128

});

129129

const sandboxForPolicy =

130-

execPolicy?.touched === true && execPolicy.security === "full" && execPolicy.ask !== "off"

130+

execPolicy.touched && execPolicy.security === "full" && execPolicy.ask !== "off"

131131

? await resolveSandboxContext({

132132

config: params.config,

133133

sessionKey: params.sessionKey,

@@ -137,7 +137,7 @@ async function resolveConversationAppServerRuntime(params: {

137137

const runtime = resolveCodexAppServerRuntimeOptions({

138138

pluginConfig: params.pluginConfig,

139139

execPolicy,

140-

openClawSandboxActive: sandboxForPolicy?.enabled === true,

140+

openClawSandboxActive: Boolean(sandboxForPolicy?.enabled),

141141

});

142142

assertNativeConversationApprovalPolicySupported({ execPolicy, runtime });

143143

return { execPolicy, runtime };

@@ -626,7 +626,7 @@ async function runBoundTurnWithMissingThreadRecovery(params: {

626626

config: params.config,

627627

sessionKey: params.sessionKey,

628628

});

629-

const useCurrentRuntimePolicy = execPolicy?.touched === true;

629+

const useCurrentRuntimePolicy = execPolicy.touched;

630630

await startCodexConversationThread({

631631

pluginConfig: params.pluginConfig,

632632

sessionFile: params.data.sessionFile,

Original file line numberDiff line numberDiff line change

@@ -10,6 +10,18 @@ type ExecAutoReviewer = typeof import("../infra/exec-auto-review.js").defaultExe

1010

type BuildExecApprovalFollowupTargetMock = (

1111

value: ExecApprovalFollowupTarget,

1212

) => ExecApprovalFollowupTarget | null;

13+

type MockAllowlistSegment = {

14+

raw?: string;

15+

resolution: null;

16+

argv: string[];

17+

};

18+

type MockAllowlistResult = {

19+

allowlistMatches: unknown[];

20+

analysisOk: boolean;

21+

allowlistSatisfied: boolean;

22+

segments: MockAllowlistSegment[];

23+

segmentAllowlistEntries: unknown[];

24+

};

1325
1426

const INLINE_EVAL_HIT = {

1527

executable: "python3",

@@ -37,13 +49,15 @@ const createExecApprovalDecisionStateMock = vi.hoisted(() =>

3749

),

3850

);

3951

const evaluateShellAllowlistMock = vi.hoisted(() =>

40-

vi.fn(() => ({

41-

allowlistMatches: [],

42-

analysisOk: true,

43-

allowlistSatisfied: true,

44-

segments: [{ resolution: null, argv: ["echo", "ok"] }],

45-

segmentAllowlistEntries: [{ pattern: "/usr/bin/echo", source: "allow-always" }],

46-

})),

52+

vi.fn(

53+

(): MockAllowlistResult => ({

54+

allowlistMatches: [],

55+

analysisOk: true,

56+

allowlistSatisfied: true,

57+

segments: [{ resolution: null, argv: ["echo", "ok"] }],

58+

segmentAllowlistEntries: [{ pattern: "/usr/bin/echo", source: "allow-always" }],

59+

}),

60+

),

4761

);

4862

const analyzeShellCommandMock = vi.hoisted(() =>

4963

vi.fn((params: { command: string }) => ({

Original file line numberDiff line numberDiff line change

@@ -3,6 +3,18 @@ import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";

33

type StrictInlineEvalBoundary =

44

typeof import("./bash-tools.exec-host-shared.js").enforceStrictInlineEvalApprovalBoundary;

55

type ExecAutoReviewer = typeof import("../infra/exec-auto-review.js").defaultExecAutoReviewer;

6+

type MockAllowlistSegment = {

7+

raw?: string;

8+

resolution: null;

9+

argv: string[];

10+

};

11+

type MockAllowlistResult = {

12+

allowlistMatches: unknown[];

13+

analysisOk: boolean;

14+

allowlistSatisfied: boolean;

15+

segments: MockAllowlistSegment[];

16+

segmentAllowlistEntries: unknown[];

17+

};

618
719

const INLINE_EVAL_HIT = {

820

executable: "python3",

@@ -30,13 +42,15 @@ const listNodesMock = vi.hoisted(() => vi.fn());

3042

const parsePreparedSystemRunPayloadMock = vi.hoisted(() => vi.fn());

3143

const commandRequiresSecurityAuditSuppressionApprovalMock = vi.hoisted(() => vi.fn(() => false));

3244

const evaluateShellAllowlistMock = vi.hoisted(() =>

33-

vi.fn(() => ({

34-

allowlistMatches: [],

35-

analysisOk: true,

36-

allowlistSatisfied: false,

37-

segments: [{ resolution: null, argv: ["bun", "./script.ts"] }],

38-

segmentAllowlistEntries: [],

39-

})),

45+

vi.fn(

46+

(): MockAllowlistResult => ({

47+

allowlistMatches: [],

48+

analysisOk: true,

49+

allowlistSatisfied: false,

50+

segments: [{ resolution: null, argv: ["bun", "./script.ts"] }],

51+

segmentAllowlistEntries: [],

52+

}),

53+

),

4054

);

4155

const resolveExecApprovalsFromFileMock = vi.hoisted(() =>

4256

vi.fn(() => ({

Original file line numberDiff line numberDiff line change

@@ -65,6 +65,7 @@ function execSecurityFloorRank(security: ExecSecurity): number {

6565

case "deny":

6666

return 2;

6767

}

68+

throw new Error("Unsupported exec security floor");

6869

}

6970
7071

function nodePolicyBlocksAutoReview(params: {

Original file line numberDiff line numberDiff line change

@@ -133,9 +133,8 @@ export function resolveExecPolicyForMode(mode: ExecMode): {

133133

case "full":

134134

return { security: "full", ask: "off", autoReview: false };

135135

}

136-

const _exhaustive: never = mode;

137-

void _exhaustive;

138-

throw new Error("Unsupported exec mode");

136+

const exhaustiveMode: never = mode;

137+

throw new Error(`Unsupported exec mode: ${String(exhaustiveMode)}`);

139138

}

140139
141140

export function resolveExecModePolicy(params: {