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

推荐订阅源

云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
博客园 - 【当耐特】
H
Help Net Security
腾讯CDC
大猫的无限游戏
大猫的无限游戏
GbyAI
GbyAI
Last Week in AI
Last Week in AI
Jina AI
Jina AI
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
Y
Y Combinator Blog
C
Check Point 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
fix(e2e): resolve mac update smoke commands from PATH · o...
vincentkoc · 2026-05-27 · via Recent Commits to openclaw:main

@@ -94,11 +94,14 @@ interface MacosSummary {

9494

}

95959696

const guestPath =

97-

"/opt/homebrew/bin:/opt/homebrew/opt/node/bin:/opt/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin";

98-

const guestOpenClaw = "/opt/homebrew/bin/openclaw";

99-

const guestOpenClawEntry = "/opt/homebrew/lib/node_modules/openclaw/openclaw.mjs";

100-

const guestNode = "/opt/homebrew/bin/node";

101-

const guestNpm = "/opt/homebrew/bin/npm";

97+

"/opt/homebrew/bin:/opt/homebrew/opt/node/bin:/usr/local/bin:/usr/local/sbin:/opt/homebrew/sbin:/usr/bin:/bin:/usr/sbin:/sbin";

98+

const guestOpenClaw = "openclaw";

99+

const guestOpenClawEntry = '"$(npm root -g)/openclaw/openclaw.mjs"';

100+

const guestOpenClawEntryRunner = `node ${guestOpenClawEntry}`;

101+

const guestOpenClawEntryExecScript =

102+

'entry="$(npm root -g)/openclaw/openclaw.mjs"; exec node "$entry" "$@"';

103+

const guestNode = "node";

104+

const guestNpm = "npm";

102105103106

const defaultOptions = (): MacosOptions => ({

104107

discordChannelId: undefined,

@@ -576,6 +579,16 @@ class MacosSmoke {

576579

return this.guest.exec(args, options);

577580

}

578581582+

private guestOpenClawEntryExec(

583+

args: string[],

584+

options: { check?: boolean; env?: Record<string, string> } = {},

585+

): string {

586+

return this.guestExec(

587+

["/bin/sh", "-c", guestOpenClawEntryExecScript, "openclaw-entry", ...args],

588+

options,

589+

);

590+

}

591+579592

private guestSh(script: string, env: Record<string, string> = {}): string {

580593

return this.guest.sh(script, env);

581594

}

@@ -790,7 +803,7 @@ ${guestOpenClaw} --version`);

790803791804

private verifyBundlePermissions(): void {

792805

this.guestSh(String.raw`set -eu

793-

root=$(/opt/homebrew/bin/npm root -g)

806+

root=$(npm root -g)

794807

check_path() {

795808

path="$1"

796809

[ -e "$path" ] || return 0

@@ -852,7 +865,7 @@ fi

852865

echo "bootstrap-pnpm: install"

853866

rm -rf "$bootstrap_root"

854867

mkdir -p "$bootstrap_root"

855-

/opt/homebrew/bin/node /opt/homebrew/bin/npm install --prefix "$bootstrap_root" --no-save pnpm@11

868+

npm install --prefix "$bootstrap_root" --no-save pnpm@11

856869

"$bootstrap_bin/pnpm" --version`);

857870

}

858871

@@ -871,14 +884,14 @@ const config = JSON.parse(fs.readFileSync(configPath, "utf8"));

871884

config.update = { ...(config.update || {}), channel: "dev" };

872885

fs.writeFileSync(configPath, JSON.stringify(config, null, 2) + "\\n");

873886

JS

874-

/usr/bin/env NODE_OPTIONS=--max-old-space-size=8192 OPENCLAW_ALLOW_OLDER_BINARY_DESTRUCTIVE_ACTIONS=1 OPENCLAW_DISABLE_BUNDLED_PLUGINS=1 ${guestNode} ${guestOpenClawEntry} update --channel dev --yes --json

875-

${guestNode} ${guestOpenClawEntry} --version

876-

${guestNode} ${guestOpenClawEntry} update status --json`,

887+

/usr/bin/env NODE_OPTIONS=--max-old-space-size=8192 OPENCLAW_ALLOW_OLDER_BINARY_DESTRUCTIVE_ACTIONS=1 OPENCLAW_DISABLE_BUNDLED_PLUGINS=1 ${guestOpenClawEntryRunner} update --channel dev --yes --json

888+

${guestOpenClawEntryRunner} --version

889+

${guestOpenClawEntryRunner} update status --json`,

877890

);

878891

}

879892880893

private verifyDevChannelUpdate(): void {

881-

const status = this.guestExec([guestNode, guestOpenClawEntry, "update", "status", "--json"]);

894+

const status = this.guestOpenClawEntryExec(["update", "status", "--json"]);

882895

for (const needle of ['"installKind": "git"', '"value": "dev"', '"branch": "main"']) {

883896

if (!status.includes(needle)) {

884897

throw new Error(`dev update status missing ${needle}`);

@@ -901,7 +914,7 @@ trap '' HUP

901914

`${this.auth.apiKeyEnv}=${this.auth.apiKeyValue}`,

902915

)} OPENCLAW_HOME=${shellQuote(home)} OPENCLAW_STATE_DIR=${shellQuote(`${home}/.openclaw`)} OPENCLAW_CONFIG_PATH=${shellQuote(

903916

`${home}/.openclaw/openclaw.json`,

904-

)} ${guestNode} ${guestOpenClawEntry} gateway run --bind loopback --port 18789 --force </dev/null >/tmp/openclaw-parallels-macos-gateway.log 2>&1 &

917+

)} ${guestOpenClawEntryRunner} gateway run --bind loopback --port 18789 --force </dev/null >/tmp/openclaw-parallels-macos-gateway.log 2>&1 &

905918

sleep 1`,

906919

);

907920

}

@@ -990,28 +1003,24 @@ exit 1`);

9901003

}

99110049921005

private verifyTurn(): void {

993-

this.guestExec([guestNode, guestOpenClawEntry, "models", "set", this.auth.modelId]);

1006+

this.guestOpenClawEntryExec(["models", "set", this.auth.modelId]);

9941007

const modelProviderConfigBatch = modelProviderConfigBatchJson(this.auth.modelId, "macos");

9951008

if (modelProviderConfigBatch) {

9961009

this.guestSh(`provider_config_batch="$(mktemp)"

9971010

cat >"$provider_config_batch" <<'JSON'

9981011

${modelProviderConfigBatch}

9991012

JSON

1000-

${shellQuote(guestNode)} ${shellQuote(

1001-

guestOpenClawEntry,

1002-

)} config set --batch-file "$provider_config_batch" --strict-json

1013+

${guestOpenClawEntryRunner} config set --batch-file "$provider_config_batch" --strict-json

10031014

rm -f "$provider_config_batch"`);

10041015

}

1005-

this.guestExec([

1006-

guestNode,

1007-

guestOpenClawEntry,

1016+

this.guestOpenClawEntryExec([

10081017

"config",

10091018

"set",

10101019

"agents.defaults.skipBootstrap",

10111020

"true",

10121021

"--strict-json",

10131022

]);

1014-

this.guestExec([guestNode, guestOpenClawEntry, "config", "set", "tools.profile", "minimal"]);

1023+

this.guestOpenClawEntryExec(["config", "set", "tools.profile", "minimal"]);

10151024

this.restrictAgentTurnPlugins();

10161025

this.guestSh(

10171026

`${posixAgentWorkspaceScript("Parallels macOS smoke test assistant.")}

@@ -1022,7 +1031,7 @@ for attempt in 1 2; do

10221031

rm -f "$HOME/.openclaw/agents/main/sessions/$session_id.jsonl"

10231032

output_file="$(mktemp)"

10241033

set +e

1025-

/usr/bin/env ${shellQuote(`${this.auth.apiKeyEnv}=${this.auth.apiKeyValue}`)} ${guestNode} ${guestOpenClawEntry} agent --local --agent main --session-id "$session_id" --message ${shellQuote(

1034+

/usr/bin/env ${shellQuote(`${this.auth.apiKeyEnv}=${this.auth.apiKeyValue}`)} ${guestOpenClawEntryRunner} agent --local --agent main --session-id "$session_id" --message ${shellQuote(

10261035

"Reply with exact ASCII text OK only.",

10271036

)} --thinking off --timeout ${resolveParallelsModelTimeoutSeconds("macos")} --json >"$output_file" 2>&1

10281037

rc=$?