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

lsm / neokai / 25324755337
82%

Build:
DEFAULT BRANCH: dev
Ran 04 May 2026 02:28PM UTC
Jobs 29
Files 532
Run time 3min
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

04 May 2026 02:28PM UTC coverage: 71.349% (+0.05%) from 71.299%
25324755337

push

github

web-flow
Add gate poll mechanism for periodic script execution and node message injection (#1778)

* Add gate poll mechanism for periodic script execution and node message injection

Adds a `poll` field to workflow gates that periodically executes a script and
injects messages into workflow node sessions when script output changes. This
enables nodes to react to external events (PR comments, CI status, etc.)
without human relay.

- Add `GatePoll` interface to shared types (intervalMs, script, target, messageTemplate)
- Add `GatePollManager` runtime class for poll lifecycle (start/stop/tick)
- Wire poll manager into SpaceRuntime start/stop/cleanup lifecycle
- Add poll configuration UI to GateEditorPanel (toggle, interval, script, target, template)
- Add `validateGatePoll` to gate-evaluator for input validation
- Poll scripts receive context vars (TASK_ID, PR_URL, REPO_OWNER, etc.) as env vars
- Minimum interval: 10 seconds, script timeout: 30 seconds
- Backward compatible — workflows without `poll` work exactly as before

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

* Address PR review feedback: fix poll lifecycle bugs, add race guard and tests

- Fix `cleanupTerminalExecutors` to stop polls for `blocked` runs (P0)
- Fix `reconcileTerminalRunsWithoutExecutors` to call `stopPolls` (P0)
- Add `active` flag to prevent in-flight tick execution after stop (P1)
- Add unit tests for `validateGatePoll` in gate-evaluator.test.ts (P1)
- Add tests for lastOutput reset behavior and tick cancellation
- Fix lint issues: use literal keys, type annotation for proc variable

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

* Defer lastOutput update until after successful message injection

Previously, lastOutput was updated before checking for an active session.
If no session existed, the changed output was "consumed" and never delivered
once a session appeared. Now lastOutput is only updated after the message
is successfully injected, ensuring pending chang... (continued)

7853 of 10860 branches covered (72.31%)

Branch coverage included in aggregate %.

371 of 421 new or added lines in 5 files covered. (88.12%)

63462 of 89092 relevant lines covered (71.23%)

252.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
97.82
-0.8% packages/daemon/src/lib/space/runtime/space-runtime.ts
19
54.03
-4.77% packages/web/src/components/space/visual-editor/GateEditorPanel.tsx
10
96.12
packages/daemon/src/lib/space/runtime/gate-poll-manager.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-5-space-workflow - 25324755337.1 04 May 2026 02:29PM UTC 104
30.44
GitHub Action Run
2 daemon-online-git - 25324755337.2 04 May 2026 02:29PM UTC 305
20.03
GitHub Action Run
3 web - 25324755337.3 04 May 2026 02:30PM UTC 217
77.33
GitHub Action Run
4 daemon-online-rpc-1 - 25324755337.4 04 May 2026 02:30PM UTC 305
16.49
GitHub Action Run
5 daemon-4-space-storage - 25324755337.5 04 May 2026 02:29PM UTC 126
50.85
GitHub Action Run
6 daemon-5-space-runtime - 25324755337.6 04 May 2026 02:29PM UTC 146
38.57
GitHub Action Run
7 daemon-online-agent-sdk - 25324755337.7 04 May 2026 02:30PM UTC 305
18.91
GitHub Action Run
8 daemon-2-handlers - 25324755337.8 04 May 2026 02:29PM UTC 174
45.65
GitHub Action Run
9 daemon-online-space-1 - 25324755337.9 04 May 2026 02:30PM UTC 305
26.73
GitHub Action Run
10 daemon-online-space-2 - 25324755337.10 04 May 2026 02:30PM UTC 305
26.94
GitHub Action Run
11 daemon-online-coordinator - 25324755337.11 04 May 2026 02:29PM UTC 305
6.52
GitHub Action Run
12 daemon-online-rpc-4 - 25324755337.12 04 May 2026 02:30PM UTC 305
19.79
GitHub Action Run
13 daemon-online-features-3 - 25324755337.13 04 May 2026 02:30PM UTC 305
14.06
GitHub Action Run
14 daemon-5-space-other - 25324755337.14 04 May 2026 02:29PM UTC 123
30.33
GitHub Action Run
15 daemon-1-core - 25324755337.15 04 May 2026 02:29PM UTC 309
32.46
GitHub Action Run
16 daemon-0-shared - 25324755337.16 04 May 2026 02:28PM UTC 28
84.09
GitHub Action Run
17 daemon-online-sdk - 25324755337.17 04 May 2026 02:29PM UTC 305
18.83
GitHub Action Run
18 daemon-online-rpc-2 - 25324755337.18 04 May 2026 02:29PM UTC 305
20.03
GitHub Action Run
19 daemon-online-features-2 - 25324755337.19 04 May 2026 02:29PM UTC 305
19.27
GitHub Action Run
20 daemon-online-rewind-1 - 25324755337.20 04 May 2026 02:30PM UTC 305
19.09
GitHub Action Run
21 daemon-online-features-1 - 25324755337.21 04 May 2026 02:30PM UTC 305
19.56
GitHub Action Run
22 daemon-online-convo - 25324755337.22 04 May 2026 02:29PM UTC 305
18.82
GitHub Action Run
23 daemon-online-rpc-3 - 25324755337.23 04 May 2026 02:29PM UTC 305
16.87
GitHub Action Run
24 daemon-online-websocket - 25324755337.24 04 May 2026 02:29PM UTC 305
15.32
GitHub Action Run
25 daemon-online-components - 25324755337.25 04 May 2026 02:29PM UTC 305
15.21
GitHub Action Run
26 daemon-5-space-agent - 25324755337.26 04 May 2026 02:29PM UTC 158
28.06
GitHub Action Run
27 daemon-online-lifecycle - 25324755337.27 04 May 2026 02:29PM UTC 305
19.3
GitHub Action Run
28 daemon-online-rewind-2 - 25324755337.28 04 May 2026 02:30PM UTC 305
19.55
GitHub Action Run
29 daemon-online-mcp - 25324755337.29 04 May 2026 02:29PM UTC 305
15.6
GitHub Action Run
Source Files on build 25324755337
  • Tree
  • List 532
  • Changed 10
  • Source Changed 5
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25324755337
  • 2a5f7926 on github
  • Prev Build on dev (#25297572842)
  • Next Build on dev (#25337281501)
  • 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