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

lsm / neokai / 25256793429
82%

Build:
DEFAULT BRANCH: dev
Ran 02 May 2026 04:46PM UTC
Jobs 29
Files 512
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

02 May 2026 04:46PM UTC coverage: 72.063% (+0.007%) from 72.056%
25256793429

push

github

web-flow
Fix runtime reverting manually reopened/resumed workflow task back to Blocked (#1759)

* Fix runtime reverting manually reopened/resumed workflow task back to Blocked

When a queued workflow handoff message expires, the runtime blocks the
run and task. If the user then recovers the task via the UI (reopen or
resume), `recoverWorkflowBackedTask` correctly reopens the run and
resets node executions — but it did NOT clear the expired/failed pending
messages from the queue. On the next tick, `repairQueuedWorkflowNodeHandoffs`
re-discovered the stale expired messages and immediately re-blocked the
run, making manual recovery impossible.

Fix by:
1. Adding `clearTerminalForRun()` to `PendingAgentMessageRepository` to
   delete expired/failed/delivered rows for a run (preserving pending).
2. Calling it from `recoverWorkflowBackedTask` before the recovery
   transaction, so the next tick has no stale handoffs to trip over.
3. Resetting the in-memory `blockedRetryCounts` counter for the run so
   the auto-retry budget is replenished after recovery.

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

* Remove unused expiredResult variable in test

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

* Guard pre-tx cleanup on spaceId ownership check

The clearTerminalForRun() and blockedRetryCounts.delete() side-effects
fire before the transaction validates ownership. A wrong-space caller
could permanently delete messages or reset retry counters. Added
preTxTask.spaceId === spaceId to the guard.

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

* Also validate run ownership before pre-tx cleanup

A task's workflowRunId could theoretically point to a run in a
different space. Added preTxRun?.spaceId === spaceId to the guard
so clearTerminalForRun() and blockedRetryCounts.delete() cannot
mutate foreign run state.

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

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>

7802 of 10201 branches covered (76.48%)

Branch coverage included in aggregate %.

16 of 16 new or added lines in 2 files covered. (100.0%)

60460 of 84525 relevant lines covered (71.53%)

255.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 daemon-online-components - 25256793429.1 02 May 2026 04:47PM UTC 293
15.43
GitHub Action Run
2 daemon-online-rewind-1 - 25256793429.2 02 May 2026 04:48PM UTC 293
19.4
GitHub Action Run
3 daemon-5-space-workflow - 25256793429.3 02 May 2026 04:46PM UTC 91
33.62
GitHub Action Run
4 daemon-0-shared - 25256793429.4 02 May 2026 04:46PM UTC 28
84.35
GitHub Action Run
5 daemon-5-space-runtime - 25256793429.5 02 May 2026 04:47PM UTC 135
38.75
GitHub Action Run
6 daemon-online-git - 25256793429.6 02 May 2026 04:47PM UTC 293
20.38
GitHub Action Run
7 daemon-online-space-2 - 25256793429.7 02 May 2026 04:48PM UTC 293
27.09
GitHub Action Run
8 daemon-online-rewind-2 - 25256793429.8 02 May 2026 04:47PM UTC 293
19.89
GitHub Action Run
9 daemon-online-convo - 25256793429.9 02 May 2026 04:47PM UTC 293
19.12
GitHub Action Run
10 daemon-online-features-2 - 25256793429.10 02 May 2026 04:47PM UTC 293
19.59
GitHub Action Run
11 daemon-online-coordinator - 25256793429.11 02 May 2026 04:47PM UTC 293
6.48
GitHub Action Run
12 daemon-5-space-other - 25256793429.12 02 May 2026 04:47PM UTC 112
31.6
GitHub Action Run
13 daemon-online-sdk - 25256793429.13 02 May 2026 04:47PM UTC 293
19.13
GitHub Action Run
14 daemon-online-lifecycle - 25256793429.14 02 May 2026 04:47PM UTC 293
19.61
GitHub Action Run
15 daemon-online-agent-sdk - 25256793429.15 02 May 2026 04:47PM UTC 293
19.22
GitHub Action Run
16 daemon-online-rpc-3 - 25256793429.16 02 May 2026 04:47PM UTC 293
17.17
GitHub Action Run
17 web - 25256793429.17 02 May 2026 04:48PM UTC 209
81.98
GitHub Action Run
18 daemon-online-features-3 - 25256793429.18 02 May 2026 04:46PM UTC 293
14.2
GitHub Action Run
19 daemon-online-websocket - 25256793429.19 02 May 2026 04:46PM UTC 293
15.55
GitHub Action Run
20 daemon-online-features-1 - 25256793429.20 02 May 2026 04:47PM UTC 293
19.89
GitHub Action Run
21 daemon-online-rpc-2 - 25256793429.21 02 May 2026 04:48PM UTC 293
20.39
GitHub Action Run
22 daemon-4-space-storage - 25256793429.22 02 May 2026 04:47PM UTC 118
54.73
GitHub Action Run
23 daemon-5-space-agent - 25256793429.23 02 May 2026 04:47PM UTC 145
29.1
GitHub Action Run
24 daemon-1-core - 25256793429.24 02 May 2026 04:47PM UTC 297
31.84
GitHub Action Run
25 daemon-2-handlers - 25256793429.25 02 May 2026 04:46PM UTC 166
47.88
GitHub Action Run
26 daemon-online-rpc-1 - 25256793429.26 02 May 2026 04:47PM UTC 293
16.77
GitHub Action Run
27 daemon-online-space-1 - 25256793429.27 02 May 2026 04:47PM UTC 293
26.8
GitHub Action Run
28 daemon-online-mcp - 25256793429.28 02 May 2026 04:47PM UTC 293
15.84
GitHub Action Run
29 daemon-online-rpc-4 - 25256793429.29 02 May 2026 04:48PM UTC 293
20.14
GitHub Action Run
Source Files on build 25256793429
  • Tree
  • List 512
  • 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 #25256793429
  • 977cd45b on github
  • Prev Build on dev (#25255886703)
  • Next Build on dev (#25257928187)
  • 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