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

lsm / neokai / 22554288852
84%

Build:
DEFAULT BRANCH: dev
Ran 01 Mar 2026 10:28PM UTC
Jobs 20
Files 235
Run time 1min
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

01 Mar 2026 10:28PM UTC coverage: 84.51% (-0.3%) from 84.843%
22554288852

push

github

web-flow
fix: prevent SDK startup timeout after model switch mid-session (#172)

* fix: prevent SDK startup timeout after model switch mid-session

Three bugs caused model switching to break sessions with substantial history:

1. Session file validation gap: validateAndRepairSDKSession() only ran via
   ensureQueryStarted() (user message path), never during model switch
   restart() or Reset Agent reset(). Corrupted session files from interrupted
   SDK compaction were never repaired.

2. Race condition in runQuery() finally block: shared state cleanup (abort
   controller, timers) ran before the stale query check, causing the old
   query's finally block to abort the new query's abort controller.

3. No recovery from startup timeout: when SDK startup timed out (15s),
   sdkSessionId was never cleared, so every subsequent restart/reset
   attempted to resume the same problematic session file.

Fixes:
- Add validateAndRepairSDKSession() to restart() and reset() paths
- Move isStaleQuery check before shared state cleanup in finally block
- Clear sdkSessionId on startup timeout for automatic recovery
- Add error/circuit breaker clearing to restart()

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

* style: fix biome formatting in query-runner.ts

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

---------

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

2561 of 3019 branches covered (84.83%)

Branch coverage included in aggregate %.

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

98 existing lines in 2 files now uncovered.

20255 of 23979 relevant lines covered (84.47%)

265.89 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
9
95.84
-1.7% packages/daemon/src/lib/room/room-runtime.ts
89
0.0
-92.98% packages/daemon/src/lib/room/general-agent.ts
Jobs
ID Job ID Ran Files Coverage
1 daemon-online-mcp - 22554288852.1 01 Mar 2026 10:28PM UTC 136
21.26
GitHub Action Run
2 web - 22554288852.2 01 Mar 2026 10:29PM UTC 97
85.09
GitHub Action Run
3 daemon-online-agent - 22554288852.3 01 Mar 2026 10:30PM UTC 136
30.64
GitHub Action Run
4 daemon-online-features-1 - 22554288852.4 01 Mar 2026 10:30PM UTC 136
26.08
GitHub Action Run
5 daemon-online-lifecycle - 22554288852.5 01 Mar 2026 10:29PM UTC 136
24.25
GitHub Action Run
6 daemon-online-room-2 - 22554288852.6 01 Mar 2026 10:30PM UTC 136
37.29
GitHub Action Run
7 daemon-online-rewind - 22554288852.7 01 Mar 2026 10:29PM UTC 136
32.66
GitHub Action Run
8 daemon-online-rpc-3 - 22554288852.8 01 Mar 2026 10:29PM UTC 136
28.12
GitHub Action Run
9 daemon-online-sdk - 22554288852.9 01 Mar 2026 10:29PM UTC 136
24.25
GitHub Action Run
10 daemon-online-websocket - 22554288852.10 01 Mar 2026 10:28PM UTC 136
19.92
GitHub Action Run
11 daemon-online-git - 22554288852.11 01 Mar 2026 10:29PM UTC 136
28.03
GitHub Action Run
12 daemon-online-providers - 22554288852.12 01 Mar 2026 10:28PM UTC 136
6.68
GitHub Action Run
13 daemon-online-components - 22554288852.13 01 Mar 2026 10:29PM UTC 136
19.5
GitHub Action Run
14 daemon-online-rpc-2 - 22554288852.14 01 Mar 2026 10:30PM UTC 136
29.63
GitHub Action Run
15 daemon-online-coordinator - 22554288852.15 01 Mar 2026 10:28PM UTC 136
6.67
GitHub Action Run
16 daemon - 22554288852.16 01 Mar 2026 10:29PM UTC 138
79.6
GitHub Action Run
17 daemon-online-room-1 - 22554288852.17 01 Mar 2026 10:29PM UTC 136
40.25
GitHub Action Run
18 daemon-online-convo - 22554288852.18 01 Mar 2026 10:29PM UTC 136
29.62
GitHub Action Run
19 daemon-online-rpc-1 - 22554288852.19 01 Mar 2026 10:30PM UTC 136
26.54
GitHub Action Run
20 daemon-online-features-2 - 22554288852.20 01 Mar 2026 10:29PM UTC 136
24.52
GitHub Action Run
Source Files on build 22554288852
  • Tree
  • List 235
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22554288852
  • 12a5f261 on github
  • Prev Build on dev (#22554055701)
  • Next Build on dev (#22554798565)
  • 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