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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
U
Unit 42
IT之家
IT之家
Y
Y Combinator Blog
T
Tailwind CSS Blog
B
Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
I
InfoQ
J
Java Code Geeks
F
Fortinet All Blogs
T
The Blog of Author Tim Ferriss
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
GbyAI
GbyAI
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain 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: add docker proof for plugin binding command escape ...
steipete · 2026-05-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1673,6 +1673,7 @@

16731673

"test:docker:openai-web-search-minimal": "bash scripts/e2e/openai-web-search-minimal-docker.sh",

16741674

"test:docker:openwebui": "bash scripts/e2e/openwebui-docker.sh",

16751675

"test:docker:pi-bundle-mcp-tools": "bash scripts/e2e/pi-bundle-mcp-tools-docker.sh",

1676+

"test:docker:plugin-binding-command-escape": "bash scripts/e2e/plugin-binding-command-escape-docker.sh",

16761677

"test:docker:plugin-lifecycle-matrix": "bash scripts/e2e/plugin-lifecycle-matrix-docker.sh",

16771678

"test:docker:plugin-update": "bash scripts/e2e/plugin-update-unchanged-docker.sh",

16781679

"test:docker:plugins": "bash scripts/e2e/plugins-docker.sh",

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,46 @@

1+

#!/usr/bin/env bash

2+

# Verifies the plugin-owned conversation binding command escape regression in

3+

# Docker. The focused Vitest cases assert that real authorized commands escape,

4+

# while unknown or unauthorized slash text stays with the bound plugin.

5+

set -euo pipefail

6+
7+

ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"

8+

source "$ROOT_DIR/scripts/lib/docker-e2e-image.sh"

9+
10+

IMAGE_NAME="${OPENCLAW_PLUGIN_BINDING_COMMAND_ESCAPE_E2E_IMAGE:-openclaw-plugin-binding-command-escape-e2e}"

11+

CONTAINER_NAME="openclaw-plugin-binding-command-escape-e2e-$$"

12+

RUN_LOG="$(mktemp -t openclaw-plugin-binding-command-escape-log.XXXXXX)"

13+

FOCUSED_TEST_REGEX="lets authorized plugin-owned binding commands fall through to command processing|keeps authorized unknown slash text in a plugin-owned binding routed to the bound plugin|keeps unauthorized plugin-owned binding slash text routed to the bound plugin"

14+
15+

cleanup() {

16+

docker rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true

17+

rm -f "$RUN_LOG"

18+

}

19+

trap cleanup EXIT

20+
21+

docker_e2e_build_or_reuse \

22+

"$IMAGE_NAME" \

23+

plugin-binding-command-escape \

24+

"$ROOT_DIR/scripts/e2e/plugin-binding-command-escape.Dockerfile" \

25+

"$ROOT_DIR"

26+
27+

echo "Running plugin binding command escape Docker E2E..."

28+

set +e

29+

docker run --rm \

30+

--name "$CONTAINER_NAME" \

31+

-e COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \

32+

-e "FOCUSED_TEST_REGEX=$FOCUSED_TEST_REGEX" \

33+

-e OPENCLAW_VITEST_FS_MODULE_CACHE_PATH=/tmp/openclaw-vitest-cache \

34+

"$IMAGE_NAME" \

35+

bash -lc 'set -euo pipefail; corepack enable; node scripts/run-vitest.mjs src/auto-reply/reply/dispatch-from-config.test.ts -- --reporter=verbose -t "$FOCUSED_TEST_REGEX"' \

36+

>"$RUN_LOG" 2>&1

37+

status=$?

38+

set -e

39+
40+

if [ "$status" -ne 0 ]; then

41+

echo "Docker plugin binding command escape smoke failed"

42+

cat "$RUN_LOG"

43+

exit "$status"

44+

fi

45+
46+

echo "OK"

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,14 @@

1+

FROM node:24-bookworm-slim@sha256:e8e2e91b1378f83c5b2dd15f0247f34110e2fe895f6ca7719dbb780f929368eb

2+
3+

RUN apt-get update \

4+

&& apt-get install -y --no-install-recommends ca-certificates git python3 \

5+

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

6+
7+

RUN corepack enable

8+
9+

WORKDIR /workspace/openclaw

10+

COPY . .

11+
12+

RUN pnpm install --frozen-lockfile

13+
14+

CMD ["bash"]

Original file line numberDiff line numberDiff line change

@@ -462,6 +462,11 @@ export const mainLanes = [

462462

"session-runtime-context",

463463

"OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:session-runtime-context",

464464

),

465+

lane("plugin-binding-command-escape", "pnpm test:docker:plugin-binding-command-escape", {

466+

e2eImageKind: false,

467+

resources: ["npm"],

468+

stateScenario: "empty",

469+

}),

465470

lane("commitments-safety", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:commitments-safety", {

466471

stateScenario: "empty",

467472

}),

@@ -713,6 +718,11 @@ const primaryReleasePathChunks = {

713718

"session-runtime-context",

714719

"OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:session-runtime-context",

715720

),

721+

lane("plugin-binding-command-escape", "pnpm test:docker:plugin-binding-command-escape", {

722+

e2eImageKind: false,

723+

resources: ["npm"],

724+

stateScenario: "empty",

725+

}),

716726

lane("commitments-safety", "OPENCLAW_SKIP_DOCKER_BUILD=1 pnpm test:docker:commitments-safety", {

717727

stateScenario: "empty",

718728

}),

Original file line numberDiff line numberDiff line change

@@ -705,6 +705,21 @@ describe("scripts/lib/docker-e2e-plan", () => {

705705

expect(plan.needs.package).toBe(true);

706706

});

707707
708+

it("plans the plugin binding command escape lane as source Docker proof", () => {

709+

const plan = planFor({ selectedLaneNames: ["plugin-binding-command-escape"] });

710+
711+

expect(plan.lanes).toHaveLength(1);

712+

const lane = requireFirstLane(plan);

713+

expect(lane.command).toBe("pnpm test:docker:plugin-binding-command-escape");

714+

expect(lane.imageKind).toBeUndefined();

715+

expect(lane.live).toBe(false);

716+

expect(lane.name).toBe("plugin-binding-command-escape");

717+

expect(lane.resources).toEqual(["docker", "npm"]);

718+

expect(lane.stateScenario).toBe("empty");

719+

expect(plan.needs.e2eImage).toBe(false);

720+

expect(plan.needs.package).toBe(false);

721+

});

722+
708723

it("plans the live plugin tool lane as package-backed OpenAI proof", () => {

709724

const plan = planFor({ selectedLaneNames: ["live-plugin-tool"] });

710725