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

lsm / neokai / 28213873679
82%

Build:
DEFAULT BRANCH: dev
Ran 26 Jun 2026 02:47AM UTC
Jobs 28
Files 616
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

26 Jun 2026 02:46AM UTC coverage: 81.865% (-0.3%) from 82.119%
28213873679

push

github

web-flow
fix: auto-compact + continue on 'prompt is too long' overflow (#2179)

* fix: compact-then-continue recovery on 'prompt is too long' overflow

Worker/node sessions that overflow their context window receive a terminal
'prompt_too_long' result that the idle sweep treated as a safe terminal point
and skipped, leaving the execution stuck forever with no recovery.

Reactive recovery (core):
- New prompt-too-long-recovery.ts: isPromptTooLongResult() detects the
  terminal_reason / errors signature; buildPromptTooLongContinueNag() +
  MAX_PROMPT_TOO_LONG_RECOVERY_ATTEMPTS (2).
- SpaceRuntime.handleNonTerminalIdleExecutions now intercepts a prompt-too-long
  terminal result BEFORE the terminal skip and runs compact-then-continue:
  inject /compact (reuses the messageQueue primitive), then once the last
  message is no longer an overflow result (context shrank below the limit),
  inject a 'resume your work' nag. The continue nag only fires after compaction
  proves effective, so it never re-hits the same wall. Bounded by attempt cap;
  escalates execution+run to 'blocked' when compaction cannot help.

Preventive:
- buildProviderSettings() no longer returns {autoCompactEnabled:false} for a
  non-native provider with an unknown context window (a dead zone with no
  compaction path). Returns undefined so the SDK's built-in auto-compact
  (enabled by default) runs. Kimi's explicit disable + NeoKai fallback is
  unchanged.

* fix: harden prompt-too-long recovery against stalls (review P1/P3)

Address review feedback on the compact-then-continue state machine:

P1 — fresh overflow after /compact no longer stalls: track the injected
/compact's dbId (awaitingContinueAfterDbId). When the last message advances past
it, the wait clears and a fresh prompt-too-long result is re-evaluated (re-compact
or escalate) instead of being mistaken for the pre-compact result.

P1 — failed /compact injection no longer leaks awaitingContinue: only set
awaitingContinue (and record the ... (continued)

11368 of 16392 branches covered (69.35%)

Branch coverage included in aggregate %.

41 of 423 new or added lines in 3 files covered. (9.69%)

26 existing lines in 2 files now uncovered.

95513 of 114165 relevant lines covered (83.66%)

299.87 hits per line

Uncovered Changes

Lines Coverage ∆ File
356
92.03
-6.44% packages/daemon/src/lib/space/runtime/space-runtime.ts
26
29.73
packages/daemon/src/lib/space/runtime/prompt-too-long-recovery.ts

Coverage Regressions

Lines Coverage ∆ File
23
97.54
-2.18% packages/daemon/src/lib/agent/query-runner.ts
3
92.03
-6.44% packages/daemon/src/lib/space/runtime/space-runtime.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-5-space-runtime-a - 28213873679.1 26 Jun 2026 02:47AM UTC 129
39.23
GitHub Action Run
2 daemon-online-git - 28213873679.2 26 Jun 2026 02:48AM UTC 358
18.39
GitHub Action Run
3 daemon-online-space-2 - 28213873679.3 26 Jun 2026 02:49AM UTC 358
31.4
GitHub Action Run
4 daemon-4-space-migrations-a - 28213873679.4 26 Jun 2026 02:48AM UTC 73
37.86
GitHub Action Run
5 daemon-online-websocket - 28213873679.5 26 Jun 2026 02:47AM UTC 358
17.65
GitHub Action Run
6 daemon-4-space-migrations-b - 28213873679.6 26 Jun 2026 02:49AM UTC 48
56.03
GitHub Action Run
7 daemon-online-rpc-3 - 28213873679.7 26 Jun 2026 02:48AM UTC 358
18.98
GitHub Action Run
8 daemon-1-core - 28213873679.8 26 Jun 2026 02:48AM UTC 364
34.74
GitHub Action Run
9 daemon-online-features-2 - 28213873679.9 26 Jun 2026 02:47AM UTC 358
21.92
GitHub Action Run
10 daemon-online-rewind-1 - 28213873679.10 26 Jun 2026 02:48AM UTC 358
21.9
GitHub Action Run
11 daemon-online-agent-sdk - 28213873679.11 26 Jun 2026 02:48AM UTC 358
21.78
GitHub Action Run
12 daemon-5-space-agent-other - 28213873679.12 26 Jun 2026 02:48AM UTC 283
25.9
GitHub Action Run
13 daemon-5-space-runtime-b - 28213873679.13 26 Jun 2026 02:48AM UTC 183
47.38
GitHub Action Run
14 daemon-online-mcp - 28213873679.14 26 Jun 2026 02:47AM UTC 358
17.87
GitHub Action Run
15 daemon-online-sdk - 28213873679.15 26 Jun 2026 02:48AM UTC 358
21.79
GitHub Action Run
16 daemon-online-rewind-2 - 28213873679.16 26 Jun 2026 02:48AM UTC 358
22.37
GitHub Action Run
17 daemon-online-features-1 - 28213873679.17 26 Jun 2026 02:48AM UTC 358
22.47
GitHub Action Run
18 daemon-online-lifecycle - 28213873679.18 26 Jun 2026 02:48AM UTC 358
22.07
GitHub Action Run
19 daemon-online-rpc-4 - 28213873679.19 26 Jun 2026 02:48AM UTC 358
22.49
GitHub Action Run
20 daemon-online-convo - 28213873679.20 26 Jun 2026 02:48AM UTC 358
21.69
GitHub Action Run
21 daemon-online-space-1 - 28213873679.21 26 Jun 2026 02:48AM UTC 358
31.37
GitHub Action Run
22 daemon-online-rpc-2 - 28213873679.22 26 Jun 2026 02:48AM UTC 358
22.81
GitHub Action Run
23 daemon-online-coordinator - 28213873679.23 26 Jun 2026 02:47AM UTC 347
7.8
GitHub Action Run
24 daemon-online-rpc-1 - 28213873679.24 26 Jun 2026 02:48AM UTC 358
18.65
GitHub Action Run
25 daemon-4-space-storage - 28213873679.25 26 Jun 2026 02:47AM UTC 159
54.39
GitHub Action Run
26 web - 28213873679.26 26 Jun 2026 02:48AM UTC 248
74.53
GitHub Action Run
27 daemon-online-components - 28213873679.27 26 Jun 2026 02:47AM UTC 358
17.55
GitHub Action Run
28 daemon-0-shared-handlers-workflow - 28213873679.28 26 Jun 2026 02:48AM UTC 363
32.51
GitHub Action Run
Source Files on build 28213873679
  • Tree
  • List 616
  • Changed 10
  • Source Changed 2
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28213873679
  • f14c1538 on github
  • Prev Build on dev (#28195810905)
  • Next Build on dev (#28214469765)
  • 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