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

lsm / neokai / 22554288852 / 15
84%
dev: 84%

Build:
DEFAULT BRANCH: dev
Ran 01 Mar 2026 10:31PM UTC
Files 136
Run time 4s
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: 6.667% (-0.01%) from 6.678%
22554288852.15

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>

1814 of 27209 relevant lines covered (6.67%)

3.19 hits per line

Source Files on job daemon-online-coordinator - 22554288852.15
  • Tree
  • List 136
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22554288852
  • 12a5f261 on github
  • Prev Job for on dev (#22554055701.1)
  • 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