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

lsm / neokai / 28143109352
82%

Build:
DEFAULT BRANCH: dev
Ran 25 Jun 2026 02:37AM UTC
Jobs 28
Files 615
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

25 Jun 2026 02:36AM UTC coverage: 82.098%. First build
28143109352

push

github

web-flow
feat: bounded 5xx/overloaded retry path in query-runner with backoff (#2184)

* feat: bounded 5xx/overloaded retry path in query-runner with backoff

Add a bounded retry path for 5xx / overloaded / provider-unavailable errors
that escape the SDK's own retry logic. Previously these went terminal
(session.error -> idle/blocked) on the first occurrence.

Changes:
- query-runner.ts: replace isRetry boolean with retryAttempt counter so the
  existing 1-shot paths (startup-timeout, message-not-found, transient-
  connection) keep their 1-shot semantics while the new provider path can
  fire up to the configured cap (default 3) with exponential backoff
  (2s/4s/8s). The counter is the unbounded-loop guard.
- The bounded path re-enqueues _lastConsumedUserMessage, displays a sanitized
  retry notice, closes queryObject, waits for subprocess exit, then sleeps
  the backoff before retrying -- mirroring the transient 1-shot at :957.
- On exhaustion, falls through to the existing terminal path with a dedicated
  'temporarily unavailable, retried N time(s)' user message.
- transient-error-patterns.ts: add RETRYABLE_PROVIDER_ERROR_SUBSTRINGS and
  isRetryableProviderError() which excludes 4xx/auth/quota/model_not_found
  (terminal, never retried). 429 stays on the RateLimitWatchdog path.

Config (env, read lazily for test override):
  NEOKAI_PROVIDER_MAX_RETRIES (default 3)
  NEOKAI_PROVIDER_RETRY_BASE_DELAY_MS (default 2000)

Tests: 17 integration tests in query-runner.test.ts + 34 unit tests in the
new transient-error-patterns.test.ts covering detection, guards, exhaustion,
re-enqueue, close-before-retry, cap enforcement, and terminal exclusion.

Relates to B1 (529 mapping), B2 (broadened transient patterns), B3 (body
normalization) -- built against the existing pattern set, widens as those land.

* fix: address review feedback on bounded retry path

Address 5 of 6 review comments from chatgpt-codex-connector[bot]:

P1: Re-check cancellation before retrying after ... (continued)

11362 of 16393 branches covered (69.31%)

Branch coverage included in aggregate %.

135 of 136 new or added lines in 2 files covered. (99.26%)

95485 of 113753 relevant lines covered (83.94%)

300.79 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
98.21
packages/daemon/src/lib/agent/transient-error-patterns.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-4-space-storage - 28143109352.1 25 Jun 2026 02:37AM UTC 159
54.39
GitHub Action Run
2 daemon-online-rpc-4 - 28143109352.2 25 Jun 2026 02:38AM UTC 357
22.58
GitHub Action Run
3 daemon-0-shared-handlers-workflow - 28143109352.3 25 Jun 2026 02:38AM UTC 362
32.63
GitHub Action Run
4 daemon-online-space-2 - 28143109352.4 25 Jun 2026 02:38AM UTC 357
31.5
GitHub Action Run
5 daemon-online-components - 28143109352.5 25 Jun 2026 02:37AM UTC 357
17.62
GitHub Action Run
6 daemon-5-space-agent-other - 28143109352.6 25 Jun 2026 02:37AM UTC 282
26.02
GitHub Action Run
7 daemon-online-rpc-3 - 28143109352.7 25 Jun 2026 02:38AM UTC 357
19.05
GitHub Action Run
8 daemon-4-space-migrations-a - 28143109352.8 25 Jun 2026 02:38AM UTC 73
37.86
GitHub Action Run
9 daemon-online-space-1 - 28143109352.9 25 Jun 2026 02:38AM UTC 357
31.46
GitHub Action Run
10 daemon-5-space-runtime-b - 28143109352.10 25 Jun 2026 02:37AM UTC 182
47.7
GitHub Action Run
11 daemon-online-agent-sdk - 28143109352.11 25 Jun 2026 02:37AM UTC 357
21.86
GitHub Action Run
12 daemon-online-features-1 - 28143109352.12 25 Jun 2026 02:37AM UTC 357
22.55
GitHub Action Run
13 daemon-online-rewind-1 - 28143109352.13 25 Jun 2026 02:38AM UTC 357
21.99
GitHub Action Run
14 daemon-online-sdk - 28143109352.14 25 Jun 2026 02:37AM UTC 357
21.87
GitHub Action Run
15 daemon-online-features-2 - 28143109352.15 25 Jun 2026 02:37AM UTC 357
22.0
GitHub Action Run
16 daemon-online-lifecycle - 28143109352.16 25 Jun 2026 02:37AM UTC 357
22.16
GitHub Action Run
17 daemon-online-mcp - 28143109352.17 25 Jun 2026 02:37AM UTC 357
17.93
GitHub Action Run
18 daemon-online-websocket - 28143109352.18 25 Jun 2026 02:37AM UTC 357
17.71
GitHub Action Run
19 daemon-online-rpc-2 - 28143109352.19 25 Jun 2026 02:37AM UTC 357
22.9
GitHub Action Run
20 daemon-online-rpc-1 - 28143109352.20 25 Jun 2026 02:37AM UTC 357
18.72
GitHub Action Run
21 daemon-online-rewind-2 - 28143109352.21 25 Jun 2026 02:37AM UTC 357
22.45
GitHub Action Run
22 daemon-1-core - 28143109352.22 25 Jun 2026 02:37AM UTC 363
34.88
GitHub Action Run
23 daemon-online-convo - 28143109352.23 25 Jun 2026 02:37AM UTC 357
21.77
GitHub Action Run
24 daemon-online-coordinator - 28143109352.24 25 Jun 2026 02:37AM UTC 346
7.83
GitHub Action Run
25 web - 28143109352.25 25 Jun 2026 02:38AM UTC 248
74.52
GitHub Action Run
26 daemon-online-git - 28143109352.26 25 Jun 2026 02:37AM UTC 357
18.46
GitHub Action Run
27 daemon-5-space-runtime-a - 28143109352.27 25 Jun 2026 02:37AM UTC 128
39.56
GitHub Action Run
28 daemon-4-space-migrations-b - 28143109352.28 25 Jun 2026 02:38AM UTC 48
56.03
GitHub Action Run
Source Files on build 28143109352
  • Tree
  • List 615
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28143109352
  • 72586be8 on github
  • Prev Build on dev (#28138892406)
  • 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