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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
U
Unit 42
GbyAI
GbyAI
M
MIT News - Artificial intelligence
美团技术团队
罗磊的独立博客
雷峰网
雷峰网
量子位
博客园 - 【当耐特】
Last Week in AI
Last Week in AI
D
Docker
小众软件
小众软件
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
WordPress大学
WordPress大学
V
V2EX
博客园_首页
腾讯CDC
The Cloudflare Blog
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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
perf: speed up live Docker staging · openclaw/openclaw@ed...
steipete · 2026-04-25 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -55,7 +55,9 @@ openclaw_live_stage_source_tree() {

5555

openclaw_live_link_runtime_tree() {

5656

local dest_dir="${1:?destination directory required}"

5757
58-

ln -s /app/node_modules "$dest_dir/node_modules"

58+

if [ ! -e "$dest_dir/node_modules" ]; then

59+

ln -s /app/node_modules "$dest_dir/node_modules"

60+

fi

5961

ln -s /app/dist "$dest_dir/dist"

6062

if [ -d /app/dist-runtime/extensions ]; then

6163

export OPENCLAW_BUNDLED_PLUGINS_DIR=/app/dist-runtime/extensions

@@ -64,6 +66,16 @@ openclaw_live_link_runtime_tree() {

6466

fi

6567

}

6668
69+

openclaw_live_stage_node_modules() {

70+

local dest_dir="${1:?destination directory required}"

71+

local target_dir="$dest_dir/node_modules"

72+
73+

mkdir -p "$target_dir"

74+

find /app/node_modules -mindepth 1 -maxdepth 1 -exec ln -s {} "$target_dir" \;

75+

rm -rf "$target_dir/.vite-temp"

76+

mkdir -p "$target_dir/.vite-temp"

77+

}

78+
6779

openclaw_live_stage_state_dir() {

6880

local dest_dir="${1:?destination directory required}"

6981

local source_dir="${HOME}/.openclaw"

Original file line numberDiff line numberDiff line change

@@ -163,13 +163,7 @@ esac

163163

tmp_dir="$(mktemp -d)"

164164

source /src/scripts/lib/live-docker-stage.sh

165165

openclaw_live_stage_source_tree "$tmp_dir"

166-

# Use a writable node_modules overlay in the temp repo. Vite writes bundled

167-

# config artifacts under the nearest node_modules/.vite-temp path, and the

168-

# build-stage /app/node_modules tree is root-owned in this Docker lane.

169-

mkdir -p "$tmp_dir/node_modules"

170-

cp -aRs /app/node_modules/. "$tmp_dir/node_modules"

171-

rm -rf "$tmp_dir/node_modules/.vite-temp"

172-

mkdir -p "$tmp_dir/node_modules/.vite-temp"

166+

openclaw_live_stage_node_modules "$tmp_dir"

173167

openclaw_live_link_runtime_tree "$tmp_dir"

174168

openclaw_live_stage_state_dir "$tmp_dir/.openclaw-state"

175169

openclaw_live_prepare_staged_config

@@ -285,6 +279,7 @@ for ACP_AGENT in "${ACP_AGENTS[@]}"; do

285279

-e OPENCLAW_DOCKER_AUTH_PRESTAGED="$DOCKER_AUTH_PRESTAGED" \

286280

-e OPENCLAW_DOCKER_AUTH_DIRS_RESOLVED="$AUTH_DIRS_CSV" \

287281

-e OPENCLAW_DOCKER_AUTH_FILES_RESOLVED="$AUTH_FILES_CSV" \

282+

-e OPENCLAW_LIVE_DOCKER_SOURCE_STAGE_MODE="${OPENCLAW_LIVE_DOCKER_SOURCE_STAGE_MODE:-copy}" \

288283

-e OPENCLAW_LIVE_TEST=1 \

289284

-e OPENCLAW_LIVE_ACP_BIND=1 \

290285

-e OPENCLAW_LIVE_ACP_BIND_AGENT="$ACP_AGENT" \

Original file line numberDiff line numberDiff line change

@@ -371,10 +371,7 @@ openclaw_live_stage_source_tree "$tmp_dir"

371371

# Use a writable node_modules overlay in the temp repo. Vite writes bundled

372372

# config artifacts under the nearest node_modules/.vite-temp path, and the

373373

# build-stage /app/node_modules tree is root-owned in this Docker lane.

374-

mkdir -p "$tmp_dir/node_modules"

375-

cp -aRs /app/node_modules/. "$tmp_dir/node_modules"

376-

rm -rf "$tmp_dir/node_modules/.vite-temp"

377-

mkdir -p "$tmp_dir/node_modules/.vite-temp"

374+

openclaw_live_stage_node_modules "$tmp_dir"

378375

openclaw_live_link_runtime_tree "$tmp_dir"

379376

openclaw_live_stage_state_dir "$tmp_dir/.openclaw-state"

380377

openclaw_live_prepare_staged_config

@@ -444,6 +441,7 @@ DOCKER_RUN_ARGS=(docker run --rm -t \

444441

-e OPENCLAW_DOCKER_AUTH_PRESTAGED="$DOCKER_AUTH_PRESTAGED" \

445442

-e OPENCLAW_DOCKER_AUTH_DIRS_RESOLVED="$AUTH_DIRS_CSV" \

446443

-e OPENCLAW_DOCKER_AUTH_FILES_RESOLVED="$AUTH_FILES_CSV" \

444+

-e OPENCLAW_LIVE_DOCKER_SOURCE_STAGE_MODE="${OPENCLAW_LIVE_DOCKER_SOURCE_STAGE_MODE:-copy}" \

447445

-e OPENCLAW_LIVE_CLI_BACKEND_USE_CI_SAFE_CODEX_CONFIG="$CLI_USE_CI_SAFE_CODEX_CONFIG" \

448446

-e OPENCLAW_DOCKER_CLI_BACKEND_PROVIDER="$CLI_PROVIDER" \

449447

-e OPENCLAW_DOCKER_CLI_BACKEND_COMMAND_DEFAULT="$CLI_DEFAULT_COMMAND" \

Original file line numberDiff line numberDiff line change

@@ -169,10 +169,7 @@ fi

169169

tmp_dir="$(mktemp -d)"

170170

source /src/scripts/lib/live-docker-stage.sh

171171

openclaw_live_stage_source_tree "$tmp_dir"

172-

mkdir -p "$tmp_dir/node_modules"

173-

cp -aRs /app/node_modules/. "$tmp_dir/node_modules"

174-

rm -rf "$tmp_dir/node_modules/.vite-temp"

175-

mkdir -p "$tmp_dir/node_modules/.vite-temp"

172+

openclaw_live_stage_node_modules "$tmp_dir"

176173

openclaw_live_link_runtime_tree "$tmp_dir"

177174

openclaw_live_stage_state_dir "$tmp_dir/.openclaw-state"

178175

openclaw_live_prepare_staged_config

@@ -220,6 +217,7 @@ DOCKER_RUN_ARGS=(docker run --rm -t \

220217

-e OPENCLAW_DOCKER_AUTH_PRESTAGED="$DOCKER_AUTH_PRESTAGED" \

221218

-e OPENCLAW_CODEX_APP_SERVER_BIN="${OPENCLAW_CODEX_APP_SERVER_BIN:-codex}" \

222219

-e OPENCLAW_DOCKER_AUTH_FILES_RESOLVED="$AUTH_FILES_CSV" \

220+

-e OPENCLAW_LIVE_DOCKER_SOURCE_STAGE_MODE="${OPENCLAW_LIVE_DOCKER_SOURCE_STAGE_MODE:-copy}" \

223221

-e OPENCLAW_LIVE_CODEX_HARNESS_AUTH="$CODEX_HARNESS_AUTH_MODE" \

224222

-e OPENCLAW_LIVE_CODEX_HARNESS=1 \

225223

-e OPENCLAW_LIVE_CODEX_HARNESS_DEBUG="${OPENCLAW_LIVE_CODEX_HARNESS_DEBUG:-}" \

Original file line numberDiff line numberDiff line change

@@ -139,10 +139,7 @@ fi

139139

tmp_dir="$(mktemp -d)"

140140

source /src/scripts/lib/live-docker-stage.sh

141141

openclaw_live_stage_source_tree "$tmp_dir"

142-

mkdir -p "$tmp_dir/node_modules"

143-

cp -aRs /app/node_modules/. "$tmp_dir/node_modules"

144-

rm -rf "$tmp_dir/node_modules/.vite-temp"

145-

mkdir -p "$tmp_dir/node_modules/.vite-temp"

142+

openclaw_live_stage_node_modules "$tmp_dir"

146143

openclaw_live_link_runtime_tree "$tmp_dir"

147144

openclaw_live_stage_state_dir "$tmp_dir/.openclaw-state"

148145

openclaw_live_prepare_staged_config

@@ -167,6 +164,7 @@ DOCKER_RUN_ARGS=(docker run --rm -t \

167164

-e OPENCLAW_DOCKER_AUTH_PRESTAGED="$DOCKER_AUTH_PRESTAGED" \

168165

-e OPENCLAW_DOCKER_AUTH_DIRS_RESOLVED="$AUTH_DIRS_CSV" \

169166

-e OPENCLAW_DOCKER_AUTH_FILES_RESOLVED="$AUTH_FILES_CSV" \

167+

-e OPENCLAW_LIVE_DOCKER_SOURCE_STAGE_MODE="${OPENCLAW_LIVE_DOCKER_SOURCE_STAGE_MODE:-copy}" \

170168

-e OPENCLAW_LIVE_TEST=1 \

171169

-e OPENCLAW_LIVE_GATEWAY_MODELS="${OPENCLAW_LIVE_GATEWAY_MODELS:-modern}" \

172170

-e OPENCLAW_LIVE_GATEWAY_PROVIDERS="${OPENCLAW_LIVE_GATEWAY_PROVIDERS:-}" \

Original file line numberDiff line numberDiff line change

@@ -169,10 +169,7 @@ fi

169169

tmp_dir="$(mktemp -d)"

170170

source /src/scripts/lib/live-docker-stage.sh

171171

openclaw_live_stage_source_tree "$tmp_dir"

172-

mkdir -p "$tmp_dir/node_modules"

173-

cp -aRs /app/node_modules/. "$tmp_dir/node_modules"

174-

rm -rf "$tmp_dir/node_modules/.vite-temp"

175-

mkdir -p "$tmp_dir/node_modules/.vite-temp"

172+

openclaw_live_stage_node_modules "$tmp_dir"

176173

openclaw_live_link_runtime_tree "$tmp_dir"

177174

openclaw_live_stage_state_dir "$tmp_dir/.openclaw-state"

178175

openclaw_live_prepare_staged_config

@@ -198,6 +195,7 @@ DOCKER_RUN_ARGS=(docker run --rm -t \

198195

-e OPENCLAW_DOCKER_AUTH_PRESTAGED="$DOCKER_AUTH_PRESTAGED" \

199196

-e OPENCLAW_DOCKER_AUTH_DIRS_RESOLVED="$AUTH_DIRS_CSV" \

200197

-e OPENCLAW_DOCKER_AUTH_FILES_RESOLVED="$AUTH_FILES_CSV" \

198+

-e OPENCLAW_LIVE_DOCKER_SOURCE_STAGE_MODE="${OPENCLAW_LIVE_DOCKER_SOURCE_STAGE_MODE:-copy}" \

201199

-e OPENCLAW_LIVE_TEST=1 \

202200

-e OPENCLAW_LIVE_MODELS="${OPENCLAW_LIVE_MODELS:-modern}" \

203201

-e OPENCLAW_LIVE_PROVIDERS="${OPENCLAW_LIVE_PROVIDERS:-}" \