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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
腾讯CDC
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
MongoDB | Blog
MongoDB | Blog
宝玉的分享
宝玉的分享
有赞技术团队
有赞技术团队
美团技术团队
雷峰网
雷峰网
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 司徒正美
博客园_首页
Recent Announcements
Recent Announcements
云风的 BLOG
云风的 BLOG
B
Blog RSS Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
D
Docker
博客园 - Franky
Jina AI
Jina AI

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(crabbox): detect timed macos js commands · openclaw/o...
vincentkoc · 2026-05-26 · via Recent Commits to openclaw:main

@@ -397,6 +397,20 @@ describe("scripts/crabbox-wrapper", () => {

397397

expectGroupedShellCommand(remoteCommand, shellScript);

398398

});

399399400+

it("bootstraps raw AWS macOS shell scripts with absolute time-prefixed JavaScript commands", () => {

401+

const shellScript = "/usr/bin/time -l pnpm --version";

402+

const result = runWrapper(

403+

"provider: hetzner, aws, local-container, blacksmith-testbox, or cloudflare\n",

404+

["run", "--provider", "aws", "--target", "macos", "--shell", "--", shellScript],

405+

);

406+407+

const output = parseFakeCrabboxOutput(result);

408+

const remoteCommand = normalizeShellLineEndings(output.args.at(-1) ?? "");

409+

expect(result.status).toBe(0);

410+

expect(remoteCommand).toContain("openclaw_crabbox_bootstrap_macos_js");

411+

expectGroupedShellCommand(remoteCommand, shellScript);

412+

});

413+400414

it("bootstraps raw AWS macOS shell scripts with JavaScript control conditions", () => {

401415

const shellScript = "if node -e 'process.exit(0)'; then echo ok; fi";

402416

const result = runWrapper(

@@ -633,6 +647,27 @@ describe("scripts/crabbox-wrapper", () => {

633647

expect(remoteCommand).not.toContain("openclaw_crabbox_bootstrap_macos_js");

634648

});

635649650+

it("does not bootstrap raw AWS macOS shell scripts for timed command lookup checks", () => {

651+

const result = runWrapper(

652+

"provider: hetzner, aws, local-container, blacksmith-testbox, or cloudflare\n",

653+

[

654+

"run",

655+

"--provider",

656+

"aws",

657+

"--target",

658+

"macos",

659+

"--shell",

660+

"--",

661+

"/usr/bin/time -l command -v pnpm",

662+

],

663+

);

664+665+

const output = parseFakeCrabboxOutput(result);

666+

const remoteCommand = normalizeShellLineEndings(output.args.at(-1) ?? "");

667+

expect(result.status).toBe(0);

668+

expect(remoteCommand).not.toContain("openclaw_crabbox_bootstrap_macos_js");

669+

});

670+636671

it("groups shell commands so fallbacks cannot mask AWS macOS bootstrap failures", () => {

637672

const result = runWrapper(

638673

"provider: hetzner, aws, local-container, blacksmith-testbox, or cloudflare\n",

@@ -1032,6 +1067,27 @@ describe("scripts/crabbox-wrapper", () => {

10321067

expect(remoteCommand).toContain(`&& ${shellScript}`);

10331068

});

103410691070+

it("preserves sparse changed-gate Git bootstrap for absolute time-prefixed shell commands", () => {

1071+

const shellScript = "/usr/bin/time -l pnpm check:changed";

1072+

const result = runWrapper(

1073+

"provider: hetzner, aws, local-container, blacksmith-testbox, or cloudflare\n",

1074+

["run", "--provider", "aws", "--shell", "--", shellScript],

1075+

{

1076+

gitResponses: {

1077+

["config\u0000--bool\u0000core.sparseCheckout"]: { stdout: "true\n" },

1078+

["status\u0000--porcelain=v1"]: { stdout: "" },

1079+

["merge-base\u0000origin/main\u0000HEAD"]: { stdout: "abc123\n" },

1080+

},

1081+

},

1082+

);

1083+1084+

const output = parseFakeCrabboxOutput(result);

1085+

const remoteCommand = normalizeShellLineEndings(output.args.at(-1) ?? "");

1086+

expect(result.status).toBe(0);

1087+

expect(remoteCommand).toContain("git init -q");

1088+

expect(remoteCommand).toContain(`&& ${shellScript}`);

1089+

});

1090+10351091

it("does not treat quoted sparse shell text as a changed gate", () => {

10361092

const result = runWrapper(

10371093

"provider: hetzner, aws, local-container, blacksmith-testbox, or cloudflare\n",