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

推荐订阅源

L
LangChain Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Azure Blog
Microsoft Azure Blog
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理
MongoDB | Blog
MongoDB | Blog
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
WordPress大学
WordPress大学
U
Unit 42
腾讯CDC
D
Docker
The GitHub Blog
The GitHub Blog
阮一峰的网络日志
阮一峰的网络日志
Vercel News
Vercel News
I
InfoQ
Jina AI
Jina AI
爱范儿
爱范儿
宝玉的分享
宝玉的分享
博客园 - Franky
G
Google Developers Blog
P
Proofpoint News Feed

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(docker): isolate installer smoke sessions · openclaw...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -438,6 +438,12 @@ if (missing.length > 0) {

438438

NODE

439439

}

440440441+

session_jsonl_path() {

442+

local profile="$1"

443+

local session_id="$2"

444+

echo "$HOME/.openclaw-${profile}/agents/main/sessions/${session_id}.jsonl"

445+

}

446+441447

run_profile() {

442448

local profile="$1"

443449

local port="$2"

@@ -535,8 +541,8 @@ run_profile() {

535541

HOSTNAME_TXT="$workspace/hostname.txt"

536542

IMAGE_PNG="$workspace/proof.png"

537543

IMAGE_TXT="$workspace/image.txt"

538-

SESSION_ID="e2e-tools-${profile}"

539-

SESSION_JSONL="$HOME/.openclaw-${profile}/agents/main/sessions/${SESSION_ID}.jsonl"

544+

SESSION_ID_PREFIX="e2e-tools-${profile}"

545+

SESSION_JSONL=""

540546541547

PROOF_VALUE="$(node -e 'console.log(require("node:crypto").randomBytes(16).toString("hex"))')"

542548

echo -n "$PROOF_VALUE" >"$PROOF_TXT"

@@ -578,7 +584,9 @@ run_profile() {

578584579585

echo "==> Agent turns ($profile)"

580586581-

run_agent_turn "$profile" "$SESSION_ID" \

587+

TURN1_SESSION_ID="${SESSION_ID_PREFIX}-read-proof"

588+

SESSION_JSONL="$(session_jsonl_path "$profile" "$TURN1_SESSION_ID")"

589+

run_agent_turn "$profile" "$TURN1_SESSION_ID" \

582590

"Use the read tool (not exec) to read ${PROOF_TXT}. Reply with the exact contents only (no extra whitespace)." \

583591

"$TURN1_JSON"

584592

assert_agent_json_has_text "$TURN1_JSON"

@@ -592,7 +600,9 @@ run_profile() {

592600593601

local prompt2

594602

prompt2=$'Use the write tool (not exec) to write exactly this string into '"${PROOF_COPY}"$':\n'"${reply1}"$'\nReply with exactly: WROTE'

595-

run_agent_turn "$profile" "$SESSION_ID" "$prompt2" "$TURN2_JSON"

603+

TURN2_SESSION_ID="${SESSION_ID_PREFIX}-write-copy"

604+

SESSION_JSONL="$(session_jsonl_path "$profile" "$TURN2_SESSION_ID")"

605+

run_agent_turn "$profile" "$TURN2_SESSION_ID" "$prompt2" "$TURN2_JSON"

596606

assert_agent_json_has_text "$TURN2_JSON"

597607

assert_agent_json_ok "$TURN2_JSON" "$agent_model_provider"

598608

local copy_value

@@ -601,7 +611,9 @@ run_profile() {

601611

echo "ERROR: copy.txt did not match proof.txt ($profile)" >&2

602612

exit 1

603613

fi

604-

run_agent_turn "$profile" "$SESSION_ID" \

614+

TURN2B_SESSION_ID="${SESSION_ID_PREFIX}-read-copy"

615+

SESSION_JSONL="$(session_jsonl_path "$profile" "$TURN2B_SESSION_ID")"

616+

run_agent_turn "$profile" "$TURN2B_SESSION_ID" \

605617

"Use the read tool (not exec) to read ${PROOF_COPY}. Reply with the exact contents only (no extra whitespace)." \

606618

"$TURN2B_JSON"

607619

assert_agent_json_has_text "$TURN2B_JSON"

@@ -613,7 +625,9 @@ run_profile() {

613625

exit 1

614626

fi

615627616-

run_agent_turn "$profile" "$SESSION_ID" \

628+

TURN3_SESSION_ID="${SESSION_ID_PREFIX}-exec-hostname"

629+

SESSION_JSONL="$(session_jsonl_path "$profile" "$TURN3_SESSION_ID")"

630+

run_agent_turn "$profile" "$TURN3_SESSION_ID" \

617631

"Use the exec tool to run this command: hostname. Reply with the exact stdout only (trim trailing newline)." \

618632

"$TURN3_JSON"

619633

assert_agent_json_has_text "$TURN3_JSON"

@@ -626,15 +640,19 @@ run_profile() {

626640

fi

627641

local prompt3b

628642

prompt3b=$'Use the write tool to write exactly this string into '"${HOSTNAME_TXT}"$':\n'"${reply3}"$'\nReply with exactly: WROTE'

629-

run_agent_turn "$profile" "$SESSION_ID" "$prompt3b" "$TURN3B_JSON"

643+

TURN3B_SESSION_ID="${SESSION_ID_PREFIX}-write-hostname"

644+

SESSION_JSONL="$(session_jsonl_path "$profile" "$TURN3B_SESSION_ID")"

645+

run_agent_turn "$profile" "$TURN3B_SESSION_ID" "$prompt3b" "$TURN3B_JSON"

630646

assert_agent_json_has_text "$TURN3B_JSON"

631647

assert_agent_json_ok "$TURN3B_JSON" "$agent_model_provider"

632648

if [[ "$(cat "$HOSTNAME_TXT" 2>/dev/null | tr -d '\r\n' || true)" != "$EXPECTED_HOSTNAME" ]]; then

633649

echo "ERROR: hostname.txt did not match hostname output ($profile)" >&2

634650

exit 1

635651

fi

636652637-

run_agent_turn "$profile" "$SESSION_ID" \

653+

TURN4_SESSION_ID="${SESSION_ID_PREFIX}-image-write"

654+

SESSION_JSONL="$(session_jsonl_path "$profile" "$TURN4_SESSION_ID")"

655+

run_agent_turn "$profile" "$TURN4_SESSION_ID" \

638656

"Use the image tool on ${IMAGE_PNG}. Determine which color is on the left half and which is on the right half. Then use the write tool to write exactly: LEFT=RED RIGHT=GREEN into ${IMAGE_TXT}. Reply with exactly: LEFT=RED RIGHT=GREEN" \

639657

"$TURN4_JSON"

640658

assert_agent_json_has_text "$TURN4_JSON"

@@ -653,12 +671,12 @@ run_profile() {

653671

echo "==> Verify tool usage via session transcript ($profile)"

654672

# Give the gateway a moment to flush transcripts.

655673

sleep 1

656-

if [[ ! -f "$SESSION_JSONL" ]]; then

657-

echo "ERROR: missing session transcript ($profile): $SESSION_JSONL" >&2

658-

ls -la "$HOME/.openclaw-${profile}/agents/main/sessions" >&2 || true

659-

exit 1

660-

fi

661-

assert_session_used_tools "$SESSION_JSONL" read write exec image

674+

assert_session_used_tools "$(session_jsonl_path "$profile" "$TURN1_SESSION_ID")" read

675+

assert_session_used_tools "$(session_jsonl_path "$profile" "$TURN2_SESSION_ID")" write

676+

assert_session_used_tools "$(session_jsonl_path "$profile" "$TURN2B_SESSION_ID")" read

677+

assert_session_used_tools "$(session_jsonl_path "$profile" "$TURN3_SESSION_ID")" exec

678+

assert_session_used_tools "$(session_jsonl_path "$profile" "$TURN3B_SESSION_ID")" write

679+

assert_session_used_tools "$(session_jsonl_path "$profile" "$TURN4_SESSION_ID")" image write

662680663681

cleanup_profile

664682

trap - EXIT