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

推荐订阅源

Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
博客园_首页
T
Tailwind CSS Blog
美团技术团队
博客园 - 叶小钗
Microsoft Security Blog
Microsoft Security Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
MongoDB | Blog
MongoDB | Blog
The Cloudflare Blog
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator 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(podman): time out detached launches · openclaw/opencl...
vincentkoc · 2026-05-26 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -36,6 +36,14 @@ fail() {

3636

exit 1

3737

}

3838
39+

run_podman_detached() {

40+

if command -v timeout >/dev/null 2>&1; then

41+

timeout "$PODMAN_RUN_TIMEOUT" podman run "$@"

42+

return

43+

fi

44+

podman run "$@"

45+

}

46+
3947

validate_single_line_value() {

4048

local label="$1"

4149

local value="$2"

@@ -167,7 +175,7 @@ load_podman_env_file() {

167175

key="${key%"${key##*[![:space:]]}"}"

168176

[[ "$key" =~ ^[A-Za-z_][A-Za-z0-9_]*$ ]] || continue

169177

case "$key" in

170-

OPENCLAW_GATEWAY_TOKEN|OPENCLAW_PODMAN_CONTAINER|OPENCLAW_PODMAN_IMAGE|OPENCLAW_IMAGE|OPENCLAW_PODMAN_PULL|OPENCLAW_PODMAN_GATEWAY_HOST_PORT|OPENCLAW_GATEWAY_PORT|OPENCLAW_PODMAN_BRIDGE_HOST_PORT|OPENCLAW_BRIDGE_PORT|OPENCLAW_GATEWAY_BIND|OPENCLAW_PODMAN_USERNS|OPENCLAW_BIND_MOUNT_OPTIONS|OPENCLAW_PODMAN_PUBLISH_HOST)

178+

OPENCLAW_GATEWAY_TOKEN|OPENCLAW_PODMAN_CONTAINER|OPENCLAW_PODMAN_IMAGE|OPENCLAW_IMAGE|OPENCLAW_PODMAN_PULL|OPENCLAW_PODMAN_RUN_TIMEOUT|OPENCLAW_PODMAN_GATEWAY_HOST_PORT|OPENCLAW_GATEWAY_PORT|OPENCLAW_PODMAN_BRIDGE_HOST_PORT|OPENCLAW_BRIDGE_PORT|OPENCLAW_GATEWAY_BIND|OPENCLAW_PODMAN_USERNS|OPENCLAW_BIND_MOUNT_OPTIONS|OPENCLAW_PODMAN_PUBLISH_HOST)

171179

;;

172180

*)

173181

continue

@@ -236,6 +244,7 @@ WORKSPACE_DIR="${OPENCLAW_WORKSPACE_DIR:-$CONFIG_DIR/workspace}"

236244

CONTAINER_NAME="${OPENCLAW_PODMAN_CONTAINER:-openclaw}"

237245

OPENCLAW_IMAGE="${OPENCLAW_PODMAN_IMAGE:-${OPENCLAW_IMAGE:-openclaw:local}}"

238246

PODMAN_PULL="${OPENCLAW_PODMAN_PULL:-never}"

247+

PODMAN_RUN_TIMEOUT="${OPENCLAW_PODMAN_RUN_TIMEOUT:-600s}"

239248

HOST_GATEWAY_PORT="${OPENCLAW_PODMAN_GATEWAY_HOST_PORT:-${OPENCLAW_GATEWAY_PORT:-18789}}"

240249

HOST_BRIDGE_PORT="${OPENCLAW_PODMAN_BRIDGE_HOST_PORT:-${OPENCLAW_BRIDGE_PORT:-18790}}"

241250

PUBLISH_HOST="${OPENCLAW_PODMAN_PUBLISH_HOST:-127.0.0.1}"

@@ -546,7 +555,7 @@ if [[ "$RUN_SETUP" == true ]]; then

546555

fi

547556
548557

TOKEN_ENV_FILE="$(create_token_env_file "$ENV_FILE" "$OPENCLAW_GATEWAY_TOKEN")"

549-

podman run --pull="$PODMAN_PULL" -d --replace \

558+

run_podman_detached --pull="$PODMAN_PULL" -d --replace \

550559

--name "$CONTAINER_NAME" \

551560

--init \

552561

"${USERNS_ARGS[@]}" "${RUN_USER_ARGS[@]}" \

Original file line numberDiff line numberDiff line change

@@ -4,6 +4,7 @@ import { describe, expect, it } from "vitest";

44

const SCRIPT_PATH = "scripts/test-install-sh-docker.sh";

55

const DOCKER_SETUP_PATH = "scripts/docker/setup.sh";

66

const PODMAN_SETUP_PATH = "scripts/podman/setup.sh";

7+

const PODMAN_RUN_PATH = "scripts/run-openclaw-podman.sh";

78

const SMOKE_RUNNER_PATH = "scripts/docker/install-sh-smoke/run.sh";

89

const BUN_GLOBAL_SMOKE_PATH = "scripts/e2e/bun-global-install-smoke.sh";

910

const BUN_GLOBAL_ASSERTIONS_PATH = "scripts/e2e/lib/bun-global-install/assertions.mjs";

@@ -142,6 +143,18 @@ describe("test-install-sh-docker", () => {

142143

expect(script).not.toContain('podman pull "$OPENCLAW_IMAGE"');

143144

});

144145
146+

it("bounds detached Podman launches without timing out onboarding", () => {

147+

const script = readFileSync(PODMAN_RUN_PATH, "utf8");

148+
149+

expect(script).toContain('PODMAN_RUN_TIMEOUT="${OPENCLAW_PODMAN_RUN_TIMEOUT:-600s}"');

150+

expect(script).toContain("OPENCLAW_PODMAN_RUN_TIMEOUT|OPENCLAW_PODMAN_GATEWAY_HOST_PORT");

151+

expect(script).toContain("run_podman_detached()");

152+

expect(script).toContain('timeout "$PODMAN_RUN_TIMEOUT" podman run "$@"');

153+

expect(script).toContain('podman run --pull="$PODMAN_PULL" --rm -it \\');

154+

expect(script).toContain('run_podman_detached --pull="$PODMAN_PULL" -d --replace \\');

155+

expect(script).not.toContain('podman run --pull="$PODMAN_PULL" -d --replace \\');

156+

});

157+
145158

it("passes image-scoped pip packages through Docker and Podman setup", () => {

146159

const dockerSetup = readFileSync(DOCKER_SETUP_PATH, "utf8");

147160

const podmanSetup = readFileSync(PODMAN_SETUP_PATH, "utf8");