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

lsm / neokai / 24934595219
82%

Build:
DEFAULT BRANCH: dev
Ran 25 Apr 2026 03:48PM UTC
Jobs 34
Files 537
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 Apr 2026 03:47PM UTC coverage: 82.94% (+0.02%) from 82.924%
24934595219

push

github

web-flow
fix(daemon): recover stalled workflow runs on daemon restart (#120) (#1636)

* fix(daemon): recover stalled workflow runs on daemon restart

Adds `SpaceRuntime.recoverStalledRuns()` — a daemon-restart safety net
that scans `status='in_progress'` workflow runs and forces a sane
terminal state for runs that no agent will drive forward. Without this,
a crash that leaves every node execution `idle`/`cancelled` with no
completion signal would leave the parent task `in_progress` forever.

Recovery is invoked from `SpaceRuntimeService.start()` after
`provisionExistingSpaces()` (so member sessions have MCP tools attached
before any restart-driven `task_blocked` notifications fire) and is
double-gated by a `recoveryDone` flag with a backstop call from the
first `executeTick()`. Idempotent — whichever fires first wins.

Orphan in_progress executions whose sessions died across the restart
are intentionally left for `processRunTick`'s existing crash-retry
path, which already handles the case correctly with crash counting.
Duplicating that logic here would silently consume retries.

Closes #120

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* test(daemon): cover recoverStalledRuns() and start() ordering

Adds 12 unit tests for `SpaceRuntime.recoverStalledRuns()` covering
the blocked-on-no-signal path, completion-pending skip, driveable-
execution skip, orphan-in-progress passthrough (recovery does not
touch dead-session executions — tick path handles them), idempotency,
first-tick auto-trigger, and multi-run scans. Adds 2 service-level
tests asserting recovery runs after provisioning in start() and that
a thrown recovery does not block ready().

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* docs(daemon): clarify recoverStalledRuns next-step + start() ordering

Two doc-comment accuracy fixes flagged by review on PR #1636:

1. `SpaceRuntime.recoverStalledRuns` jsdoc previously claimed
   `attemptBlockedRunRecovery` would retry-or-escalate a r... (continued)

9090 of 12190 branches covered (74.57%)

Branch coverage included in aggregate %.

84 of 85 new or added lines in 2 files covered. (98.82%)

66016 of 78365 relevant lines covered (84.24%)

299.38 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
90.56
0.16% packages/daemon/src/lib/space/runtime/space-runtime-service.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-0-shared - 24934595219.1 25 Apr 2026 03:48PM UTC 29
84.83
GitHub Action Run
2 daemon-5-space-other - 24934595219.2 25 Apr 2026 03:48PM UTC 103
33.89
GitHub Action Run
3 daemon-5-space-workflow - 24934595219.3 25 Apr 2026 03:48PM UTC 81
35.43
GitHub Action Run
4 daemon-online-rpc-2 - 24934595219.4 25 Apr 2026 03:49PM UTC 286
18.78
GitHub Action Run
5 daemon-online-features-3 - 24934595219.5 25 Apr 2026 03:48PM UTC 286
15.89
GitHub Action Run
6 daemon-online-rpc-3 - 24934595219.6 25 Apr 2026 03:49PM UTC 286
20.2
GitHub Action Run
7 daemon-online-convo - 24934595219.7 25 Apr 2026 03:49PM UTC 286
19.07
GitHub Action Run
8 daemon-online-cross-provider-3 - 24934595219.8 25 Apr 2026 03:48PM UTC 286
6.27
GitHub Action Run
9 daemon-online-space-1 - 24934595219.9 25 Apr 2026 03:49PM UTC 286
26.64
GitHub Action Run
10 daemon-online-mcp - 24934595219.10 25 Apr 2026 03:48PM UTC 286
15.95
GitHub Action Run
11 daemon-online-components - 24934595219.11 25 Apr 2026 03:49PM UTC 286
15.51
GitHub Action Run
12 daemon-online-room-coder-subagents - 24934595219.12 25 Apr 2026 03:48PM UTC 286
18.11
GitHub Action Run
13 daemon-online-coordinator - 24934595219.13 25 Apr 2026 03:48PM UTC 286
6.27
GitHub Action Run
14 daemon-online-cross-provider-2 - 24934595219.14 25 Apr 2026 03:49PM UTC 286
18.1
GitHub Action Run
15 daemon-online-room-mcp - 24934595219.15 25 Apr 2026 03:49PM UTC 286
17.84
GitHub Action Run
16 daemon-online-features-1 - 24934595219.16 25 Apr 2026 03:49PM UTC 286
19.85
GitHub Action Run
17 web - 24934595219.17 25 Apr 2026 03:50PM UTC 241
79.39
GitHub Action Run
18 daemon-online-rpc-1 - 24934595219.18 25 Apr 2026 03:49PM UTC 286
19.41
GitHub Action Run
19 daemon-online-agent-sdk - 24934595219.19 25 Apr 2026 03:49PM UTC 286
19.17
GitHub Action Run
20 daemon-1-core - 24934595219.20 25 Apr 2026 03:49PM UTC 290
29.54
GitHub Action Run
21 daemon-online-rewind-2 - 24934595219.21 25 Apr 2026 03:49PM UTC 286
19.81
GitHub Action Run
22 daemon-online-lifecycle - 24934595219.22 25 Apr 2026 03:49PM UTC 286
19.58
GitHub Action Run
23 daemon-5-space-agent - 24934595219.23 25 Apr 2026 03:48PM UTC 137
29.36
GitHub Action Run
24 daemon-2-handlers - 24934595219.24 25 Apr 2026 03:48PM UTC 234
50.82
GitHub Action Run
25 daemon-online-features-2 - 24934595219.25 25 Apr 2026 03:49PM UTC 286
19.56
GitHub Action Run
26 daemon-online-sdk - 24934595219.26 25 Apr 2026 03:49PM UTC 286
19.08
GitHub Action Run
27 daemon-online-rpc-4 - 24934595219.27 25 Apr 2026 03:50PM UTC 286
20.19
GitHub Action Run
28 daemon-online-rewind-1 - 24934595219.28 25 Apr 2026 03:50PM UTC 286
19.37
GitHub Action Run
29 daemon-online-space-2 - 24934595219.29 25 Apr 2026 03:50PM UTC 286
26.96
GitHub Action Run
30 daemon-online-websocket - 24934595219.30 25 Apr 2026 03:48PM UTC 286
15.63
GitHub Action Run
31 daemon-online-git - 24934595219.31 25 Apr 2026 03:49PM UTC 286
18.36
GitHub Action Run
32 daemon-5-space-runtime - 24934595219.32 25 Apr 2026 03:49PM UTC 102
40.26
GitHub Action Run
33 daemon-4-space-storage - 24934595219.33 25 Apr 2026 03:49PM UTC 110
58.09
GitHub Action Run
34 daemon-online-cross-provider-4 - 24934595219.34 25 Apr 2026 03:49PM UTC 286
19.89
GitHub Action Run
Source Files on build 24934595219
  • Tree
  • List 537
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24934595219
  • c3f1a783 on github
  • Prev Build on dev (#24932400211)
  • Next Build on dev (#24934805579)
  • 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