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

推荐订阅源

Jina AI
Jina AI
大猫的无限游戏
大猫的无限游戏
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
V
V2EX
博客园 - 叶小钗
雷峰网
雷峰网
小众软件
小众软件
量子位
V
Visual Studio Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
Martin Fowler
Martin Fowler
G
Google Developers Blog
博客园_首页
博客园 - Franky
有赞技术团队
有赞技术团队
宝玉的分享
宝玉的分享

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
ci(release): wait out live provider rate limits · opencla...
steipete · 2026-06-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -13,7 +13,9 @@ fi

1313
1414

attempts="${OPENCLAW_LIVE_COMMAND_ATTEMPTS:-2}"

1515

delay_seconds="${OPENCLAW_LIVE_COMMAND_RETRY_DELAY_SECONDS:-10}"

16+

rate_limit_delay_seconds="${OPENCLAW_LIVE_COMMAND_RATE_LIMIT_RETRY_DELAY_SECONDS:-60}"

1617

retry_pattern="${OPENCLAW_LIVE_COMMAND_RETRY_PATTERN:-ECONNRESET|ETIMEDOUT|ENOTFOUND|EAI_AGAIN|fetch failed|TLS connection|socket hang up|UND_ERR|gateway request timeout|model idle timeout|did not produce a response before the model idle timeout|\\b429\\b|\\b529\\b}"

18+

rate_limit_pattern="${OPENCLAW_LIVE_COMMAND_RATE_LIMIT_PATTERN:-Rate limit reached|rate.?limit|tokens per min|requests per min|\\bTPM\\b|\\bRPM\\b}"

1719
1820

if ! [[ "$attempts" =~ ^[1-9][0-9]*$ ]]; then

1921

echo "OPENCLAW_LIVE_COMMAND_ATTEMPTS must be a positive integer, got: $attempts" >&2

@@ -25,6 +27,11 @@ if ! [[ "$delay_seconds" =~ ^[0-9]+$ ]]; then

2527

exit 64

2628

fi

2729
30+

if ! [[ "$rate_limit_delay_seconds" =~ ^[0-9]+$ ]]; then

31+

echo "OPENCLAW_LIVE_COMMAND_RATE_LIMIT_RETRY_DELAY_SECONDS must be a non-negative integer, got: $rate_limit_delay_seconds" >&2

32+

exit 64

33+

fi

34+
2835

log_file="$(mktemp)"

2936

cleanup() {

3037

rm -f "$log_file"

@@ -46,12 +53,20 @@ for attempt in $(seq 1 "$attempts"); do

4653

exit "$status"

4754

fi

4855
49-

if ! grep -Eiq "$retry_pattern" "$log_file"; then

56+

is_rate_limited=0

57+

if grep -Eiq "$rate_limit_pattern" "$log_file"; then

58+

is_rate_limited=1

59+

elif ! grep -Eiq "$retry_pattern" "$log_file"; then

5060

exit "$status"

5161

fi

5262
5363

echo "Live command failed with a retryable provider/network error; retrying ($attempt/$attempts)..." >&2

54-

if [[ "$delay_seconds" -gt 0 ]]; then

55-

sleep "$delay_seconds"

64+

next_delay_seconds="$delay_seconds"

65+

if [[ "$is_rate_limited" -eq 1 ]]; then

66+

next_delay_seconds="$rate_limit_delay_seconds"

67+

echo "Provider rate limit detected; waiting ${next_delay_seconds}s before retry." >&2

68+

fi

69+

if [[ "$next_delay_seconds" -gt 0 ]]; then

70+

sleep "$next_delay_seconds"

5671

fi

5772

done

Original file line numberDiff line numberDiff line change

@@ -733,6 +733,9 @@ describe("package artifact reuse", () => {

733733

expect(retryHelper).toContain("fetch failed");

734734

expect(retryHelper).toContain("gateway request timeout");

735735

expect(retryHelper).toContain("model idle timeout");

736+

expect(retryHelper).toContain("OPENCLAW_LIVE_COMMAND_RATE_LIMIT_RETRY_DELAY_SECONDS:-60");

737+

expect(retryHelper).toContain("Rate limit reached");

738+

expect(retryHelper).toContain("tokens per min");

736739

});

737740
738741

it("runs Docker live harnesses from trusted helper scripts", () => {