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

推荐订阅源

The GitHub Blog
The GitHub Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Hacker News: Ask HN
Hacker News: Ask HN
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Schneier on Security
Schneier on Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
F
Full Disclosure
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Proofpoint News Feed
Hacker News - Newest:
Hacker News - Newest: "LLM"
罗磊的独立博客
S
Schneier on Security
H
Hacker News: Front Page
H
Heimdal Security Blog
美团技术团队
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
P
Privacy International News Feed
博客园 - 三生石上(FineUI控件)
P
Palo Alto Networks Blog
PCI Perspectives
PCI Perspectives
NISL@THU
NISL@THU
T
Troy Hunt's Blog
Project Zero
Project Zero
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
小众软件
小众软件
月光博客
月光博客
Google DeepMind News
Google DeepMind News
W
WeLiveSecurity
C
Cisco Blogs
腾讯CDC
Blog — PlanetScale
Blog — PlanetScale
I
Intezer
I
InfoQ
WordPress大学
WordPress大学
F
Fortinet All Blogs
T
Threat Research - Cisco Blogs
N
News and Events Feed by Topic
T
Tor Project blog
N
News | PayPal Newsroom
A
Arctic Wolf
有赞技术团队
有赞技术团队
博客园 - Franky
Vercel News
Vercel News
宝玉的分享
宝玉的分享
Application and Cybersecurity Blog
Application and Cybersecurity Blog

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
test(openshell): align e2e with current cli · openclaw/openclaw@60695c1
vincentkoc · 2026-06-24 · via Recent Commits to openclaw:main

@@ -18,21 +18,24 @@ const OPENCLAW_OPENSHELL_E2E = process.env.OPENCLAW_E2E_OPENSHELL === "1";

1818

const OPENCLAW_OPENSHELL_E2E_TIMEOUT_MS = 12 * 60_000;

1919

const OPENCLAW_OPENSHELL_COMMAND =

2020

process.env.OPENCLAW_E2E_OPENSHELL_COMMAND?.trim() || "openshell";

21+

const OPENCLAW_OPENSHELL_CONFIG_HOME =

22+

process.env.OPENCLAW_E2E_OPENSHELL_CONFIG_HOME?.trim() || null;

23+

const OPENCLAW_OPENSHELL_HOST_IP = process.env.OPENCLAW_E2E_OPENSHELL_HOST_IP?.trim() || null;

24+

const ANSI_ESCAPE_RE = new RegExp(`${String.fromCharCode(0x1b)}\\[[0-?]*[ -/]*[@-~]`, "gu");

21252226

const CUSTOM_IMAGE_DOCKERFILE = `FROM python:3.13-slim

23272428

RUN apt-get update && apt-get install -y --no-install-recommends \\

25-

coreutils \\

26-

curl \\

27-

findutils \\

28-

iproute2 \\

29+

coreutils curl findutils iproute2 nftables \\

2930

&& rm -rf /var/lib/apt/lists/*

303131-

RUN groupadd -g 1000 sandbox && \\

32-

useradd -m -u 1000 -g sandbox sandbox

32+

RUN groupadd -g 1000660000 sandbox && \\

33+

useradd -m -u 1000660000 -g sandbox sandbox && \\

34+

install -d -o sandbox -g sandbox /sandbox

33353436

RUN echo "openclaw-openshell-e2e" > /opt/openshell-e2e-marker.txt

353738+

USER sandbox

3639

WORKDIR /sandbox

3740

CMD ["sleep", "infinity"]

3841

`;

@@ -125,17 +128,55 @@ async function commandAvailable(command: string): Promise<boolean> {

125128

}

126129

}

127130128-

async function openshellGatewayAvailable(command: string): Promise<boolean> {

131+

async function activeOpenShellGateway(

132+

command: string,

133+

env: NodeJS.ProcessEnv = process.env,

134+

): Promise<string | null> {

129135

try {

130136

const result = await runCommand({

131137

command,

132-

args: ["gateway", "start", "--help"],

138+

args: ["gateway", "list"],

139+

env,

133140

allowFailure: true,

134141

timeoutMs: 20_000,

135142

});

136-

return result.code === 0 && `${result.stdout}\n${result.stderr}`.includes("--name");

143+

if (result.code !== 0) {

144+

return null;

145+

}

146+

const output = `${result.stdout}\n${result.stderr}`.replace(ANSI_ESCAPE_RE, "");

147+

for (const line of output.split(/\r?\n/u)) {

148+

const match = line.match(/\*\s+(\S+)/u);

149+

if (match) {

150+

const info = await runCommand({

151+

command,

152+

args: ["gateway", "info", "--gateway", match[1]],

153+

env,

154+

allowFailure: true,

155+

timeoutMs: 20_000,

156+

});

157+

const endpoint = `${info.stdout}\n${info.stderr}`

158+

.replace(ANSI_ESCAPE_RE, "")

159+

.match(/Gateway endpoint:\s+(\S+)/u)?.[1];

160+

if (

161+

info.code === 0 &&

162+

endpoint &&

163+

/^(?:https?:\/\/)?(?:127\.0\.0\.1|localhost)(?::\d+)?(?:\/|$)/u.test(endpoint)

164+

) {

165+

const status = await runCommand({

166+

command,

167+

args: ["--gateway", match[1], "sandbox", "list"],

168+

env,

169+

allowFailure: true,

170+

timeoutMs: 20_000,

171+

});

172+

return status.code === 0 ? match[1] : null;

173+

}

174+

return null;

175+

}

176+

}

177+

return null;

137178

} catch {

138-

return false;

179+

return null;

139180

}

140181

}

141182

@@ -153,6 +194,41 @@ async function dockerReady(): Promise<boolean> {

153194

}

154195

}

155196197+

async function resolveOpenShellHostIp(): Promise<string> {

198+

if (OPENCLAW_OPENSHELL_HOST_IP) {

199+

return OPENCLAW_OPENSHELL_HOST_IP;

200+

}

201+

const networks = await runCommand({

202+

command: "docker",

203+

args: ["network", "ls", "--format", "{{.Name}}"],

204+

timeoutMs: 20_000,

205+

});

206+

for (const network of networks.stdout.split(/\r?\n/u).map((value) => value.trim())) {

207+

if (!network.startsWith("openshell")) {

208+

continue;

209+

}

210+

const gateway = await runCommand({

211+

command: "docker",

212+

args: [

213+

"network",

214+

"inspect",

215+

network,

216+

"--format",

217+

"{{range .IPAM.Config}}{{.Gateway}}{{end}}",

218+

],

219+

allowFailure: true,

220+

timeoutMs: 20_000,

221+

});

222+

const hostIp = gateway.stdout.trim();

223+

if (gateway.code === 0 && hostIp) {

224+

return hostIp;

225+

}

226+

}

227+

throw new Error(

228+

"OpenShell E2E could not resolve the OpenShell Docker network gateway; set OPENCLAW_E2E_OPENSHELL_HOST_IP",

229+

);

230+

}

231+156232

async function allocatePort(): Promise<number> {

157233

return await new Promise((resolve, reject) => {

158234

const server = net.createServer();

@@ -285,14 +361,21 @@ HTTPServer(("0.0.0.0", 8000), Handler).serve_forever()

285361

throw new Error("docker-backed host policy server did not become ready");

286362

}

287363288-

function buildOpenShellPolicyYaml(params: { port: number; binaryPath: string }): string {

364+

function buildOpenShellPolicyYaml(params: {

365+

port: number;

366+

binaryPath: string;

367+

hostIp: string;

368+

}): string {

289369

const networkPolicies = ` host_echo:

290370

name: host-echo

291371

endpoints:

292372

- host: host.openshell.internal

293373

port: ${params.port}

374+

protocol: rest

375+

enforcement: enforce

376+

access: full

294377

allowed_ips:

295-

- "0.0.0.0/0"

378+

- "${params.hostIp}/32"

296379

binaries:

297380

- path: ${params.binaryPath}`;

298381

return `version: 1

@@ -351,13 +434,24 @@ describe("openshell sandbox backend e2e", () => {

351434

{ timeout: OPENCLAW_OPENSHELL_E2E_TIMEOUT_MS },

352435

async () => {

353436

if (!(await dockerReady())) {

354-

return;

437+

throw new Error("OpenShell E2E requires a working Docker daemon");

355438

}

356439

if (!(await commandAvailable(OPENCLAW_OPENSHELL_COMMAND))) {

357-

return;

440+

throw new Error(`OpenShell CLI is unavailable: ${OPENCLAW_OPENSHELL_COMMAND}`);

358441

}

359-

if (!(await openshellGatewayAvailable(OPENCLAW_OPENSHELL_COMMAND))) {

360-

return;

442+

if (!OPENCLAW_OPENSHELL_CONFIG_HOME) {

443+

throw new Error(

444+

"OpenShell E2E requires OPENCLAW_E2E_OPENSHELL_CONFIG_HOME because tests isolate HOME and XDG_CONFIG_HOME",

445+

);

446+

}

447+

const openshellConfigHome = OPENCLAW_OPENSHELL_CONFIG_HOME;

448+

const hostIp = await resolveOpenShellHostIp();

449+

const gatewayName = await activeOpenShellGateway(OPENCLAW_OPENSHELL_COMMAND, {

450+

...process.env,

451+

XDG_CONFIG_HOME: openshellConfigHome,

452+

});

453+

if (!gatewayName) {

454+

throw new Error("OpenShell E2E requires an active local registered gateway");

361455

}

362456363457

const rootDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-openshell-e2e-"));

@@ -371,10 +465,8 @@ describe("openshell sandbox backend e2e", () => {

371465

const denyPolicyPath = path.join(rootDir, "deny-policy.yaml");

372466

const allowPolicyPath = path.join(rootDir, "allow-policy.yaml");

373467

const scopeSuffix = `${process.pid}-${Date.now()}`;

374-

const gatewayName = `openclaw-e2e-${scopeSuffix}`;

375468

const scopeKey = `session:openshell-e2e-deny:${scopeSuffix}`;

376469

const allowSandboxName = `openclaw-policy-allow-${scopeSuffix}`;

377-

const gatewayPort = await allocatePort();

378470

let hostPolicyServer: HostPolicyServer | null | undefined;

379471

const sandboxCfg = {

380472

mode: "all" as const,

@@ -425,40 +517,37 @@ describe("openshell sandbox backend e2e", () => {

425517

}

426518

await fs.mkdir(workspaceDir, { recursive: true });

427519

await fs.mkdir(dockerfileDir, { recursive: true });

520+

const isolatedConfigHome = env.XDG_CONFIG_HOME;

521+

if (!isolatedConfigHome) {

522+

throw new Error("OpenShell E2E could not create an isolated XDG config home");

523+

}

524+

await fs.mkdir(isolatedConfigHome, { recursive: true });

525+

await fs.cp(

526+

path.join(openshellConfigHome, "openshell"),

527+

path.join(isolatedConfigHome, "openshell"),

528+

{ recursive: true },

529+

);

428530

await fs.writeFile(path.join(workspaceDir, "seed.txt"), "seed-from-local\n", "utf8");

429531

await fs.writeFile(dockerfilePath, CUSTOM_IMAGE_DOCKERFILE, "utf8");

430532

await fs.writeFile(

431533

denyPolicyPath,

432534

buildOpenShellPolicyYaml({

433535

port: hostPolicyServer.port,

434536

binaryPath: "/usr/bin/false",

537+

hostIp,

435538

}),

436539

"utf8",

437540

);

438541

await fs.writeFile(

439542

allowPolicyPath,

440543

buildOpenShellPolicyYaml({

441544

port: hostPolicyServer.port,

442-

binaryPath: "/**",

545+

binaryPath: "/usr/bin/curl",

546+

hostIp,

443547

}),

444548

"utf8",

445549

);

446550447-

await runCommand({

448-

command: OPENCLAW_OPENSHELL_COMMAND,

449-

args: [

450-

"gateway",

451-

"start",

452-

"--name",

453-

gatewayName,

454-

"--port",

455-

String(gatewayPort),

456-

"--recreate",

457-

],

458-

env,

459-

timeoutMs: 8 * 60_000,

460-

});

461-462551

const execResult = await runBackendExec({

463552

backend,

464553

command: "pwd && cat /opt/openshell-e2e-marker.txt && cat seed.txt",

@@ -568,13 +657,6 @@ describe("openshell sandbox backend e2e", () => {

568657

allowFailure: true,

569658

timeoutMs: 2 * 60_000,

570659

});

571-

await runCommand({

572-

command: OPENCLAW_OPENSHELL_COMMAND,

573-

args: ["gateway", "destroy", "--name", gatewayName],

574-

env,

575-

allowFailure: true,

576-

timeoutMs: 3 * 60_000,

577-

});

578660

await hostPolicyServer?.close().catch(() => {});

579661

await fs.rm(rootDir, { recursive: true, force: true });

580662

if (previousHome === undefined) {