• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / neokai / 25954432999
81%

Build:
DEFAULT BRANCH: dev
Ran 16 May 2026 05:59AM UTC
Jobs 28
Files 525
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 May 2026 05:58AM UTC coverage: 83.356% (-0.1%) from 83.463%
25954432999

push

github

web-flow
feat: add 429 retry exhaustion detection and auto-recovery (#1915)

* feat: add 429 retry exhaustion detection and auto-recovery

When providers return 429 (rate limited), the SDK retries with
exponential backoff. When all retries exhaust, the session previously
stalled indefinitely requiring manual user intervention.

This change adds:
- RateLimitWatchdog: detects 429 exhaustion and schedules auto-retry
  after a 10-minute cooldown (configurable), up to 3 cycles
- rate_limit_cooldown processing state variant for UI visibility
- Frontend RateLimitCooldownBanner with countdown, retry-now, and cancel
- RPC handlers: session.cancelRateLimitRetry, session.retryNowAfterRateLimit
- Watchdog auto-cancels when user sends a new message before retry fires

* fix: address review feedback for 429 auto-retry feature

- P0: skip setIdle() after scheduling rate limit cooldown to preserve state
- P1: add rate_limit_cooldown to isAgentSessionAlive status check
- P2: remove lastUserMessage from processingState (kept in watchdog only)
- P2: add finally blocks to RateLimitCooldownBanner buttons for state reset
- P3: remove unused jest import from watchdog test
- Fix duplicate rateLimitCooldownScheduled declaration scoping

* fix: harden 429 detection and propagate cooldown status to space projections

- Case-insensitive rate-limit matching (handles "Rate limit" etc.)
- Exclude 402/quota/billing errors from auto-retry path
- Refuse cooldown scheduling when no user message available to retry
- Gate errorManager.handleError when cooldown scheduled (avoids
  terminal session.error in Space workflows during recoverable 429)
- Add rate_limit_cooldown to space activity SQL CASE projection
- Add rate_limit_cooldown to deferred injection busy-state check

* fix: await cooldown state write, add cooldown to space activity types

- Make scheduleRetry async and await setRateLimitCooldown to prevent
  race with concurrent user messages or retry-now
- Add null message guard to schedule... (continued)

8361 of 11649 branches covered (71.77%)

Branch coverage included in aggregate %.

165 of 292 new or added lines in 8 files covered. (56.51%)

6 existing lines in 2 files now uncovered.

68219 of 80222 relevant lines covered (85.04%)

296.49 hits per line

Uncovered Changes

Lines Coverage ∆ File
66
84.46
-8.75% packages/daemon/src/lib/agent/agent-session.ts
29
0.0
packages/web/src/components/sdk/RateLimitCooldownBanner.tsx
14
91.1
-8.9% packages/daemon/src/lib/agent/processing-state-manager.ts
14
44.43
-0.68% packages/daemon/src/lib/rpc-handlers/session-handlers.ts
4
58.9
-3.41% packages/web/src/lib/api-helpers.ts

Coverage Regressions

Lines Coverage ∆ File
3
84.46
-8.75% packages/daemon/src/lib/agent/agent-session.ts
3
91.1
-8.9% packages/daemon/src/lib/agent/processing-state-manager.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-2-handlers - 25954432999.1 16 May 2026 05:59AM UTC 175
48.75
GitHub Action Run
2 daemon-4-space-storage - 25954432999.2 16 May 2026 06:01AM UTC 136
58.48
GitHub Action Run
3 daemon-0-shared - 25954432999.3 16 May 2026 05:59AM UTC 30
83.92
GitHub Action Run
4 daemon-online-space-1 - 25954432999.4 16 May 2026 06:00AM UTC 295
33.06
GitHub Action Run
5 daemon-5-space-agent - 25954432999.5 16 May 2026 05:59AM UTC 166
28.56
GitHub Action Run
6 daemon-5-space-other - 25954432999.6 16 May 2026 05:59AM UTC 123
31.83
GitHub Action Run
7 daemon-5-space-runtime - 25954432999.7 16 May 2026 06:00AM UTC 148
43.68
GitHub Action Run
8 daemon-online-coordinator - 25954432999.8 16 May 2026 05:59AM UTC 295
7.32
GitHub Action Run
9 web - 25954432999.9 16 May 2026 06:00AM UTC 221
76.61
GitHub Action Run
10 daemon-online-rpc-4 - 25954432999.10 16 May 2026 06:00AM UTC 295
23.33
GitHub Action Run
11 daemon-online-space-2 - 25954432999.11 16 May 2026 06:01AM UTC 295
32.39
GitHub Action Run
12 daemon-online-rpc-1 - 25954432999.12 16 May 2026 06:00AM UTC 295
19.22
GitHub Action Run
13 daemon-online-rewind-1 - 25954432999.13 16 May 2026 06:00AM UTC 295
22.54
GitHub Action Run
14 daemon-online-rpc-3 - 25954432999.14 16 May 2026 06:00AM UTC 295
19.72
GitHub Action Run
15 daemon-online-lifecycle - 25954432999.15 16 May 2026 06:00AM UTC 295
22.78
GitHub Action Run
16 daemon-online-rpc-2 - 25954432999.16 16 May 2026 06:00AM UTC 295
23.6
GitHub Action Run
17 daemon-online-components - 25954432999.17 16 May 2026 05:59AM UTC 295
17.79
GitHub Action Run
18 daemon-online-features-2 - 25954432999.18 16 May 2026 05:59AM UTC 295
22.75
GitHub Action Run
19 daemon-online-websocket - 25954432999.19 16 May 2026 05:59AM UTC 295
17.91
GitHub Action Run
20 daemon-online-sdk - 25954432999.20 16 May 2026 06:00AM UTC 295
22.25
GitHub Action Run
21 daemon-online-rewind-2 - 25954432999.21 16 May 2026 06:00AM UTC 295
23.06
GitHub Action Run
22 daemon-online-git - 25954432999.22 16 May 2026 05:59AM UTC 295
18.87
GitHub Action Run
23 daemon-online-agent-sdk - 25954432999.23 16 May 2026 06:00AM UTC 295
22.36
GitHub Action Run
24 daemon-online-features-1 - 25954432999.24 16 May 2026 06:00AM UTC 295
23.09
GitHub Action Run
25 daemon-5-space-workflow - 25954432999.25 16 May 2026 05:59AM UTC 102
32.22
GitHub Action Run
26 daemon-online-convo - 25954432999.26 16 May 2026 06:00AM UTC 295
22.24
GitHub Action Run
27 daemon-1-core - 25954432999.27 16 May 2026 05:59AM UTC 300
36.98
GitHub Action Run
28 daemon-online-mcp - 25954432999.28 16 May 2026 05:59AM UTC 295
18.22
GitHub Action Run
Source Files on build 25954432999
  • Tree
  • List 525
  • Changed 11
  • Source Changed 11
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25954432999
  • cac8164f on github
  • Prev Build on dev (#25954359365)
  • Next Build on dev (#25955303188)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc