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

lsm / neokai / 22740425041
84%

Build:
DEFAULT BRANCH: dev
Ran 05 Mar 2026 11:02PM UTC
Jobs 0
Files 0
Run time –
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

pending completion
  cancel
22740425041

push

github

web-flow
fix(daemon): lazy-start SDK query on session restore (#183)

* fix(daemon): add session recovery safety net for room runtime

After daemon restart, in-memory AgentSession cache is cleared but DB state
remains. This caused stuck tasks when sessions were in awaiting_human state
and the human approved after restart — injectMessage failed because the
session wasn't in memory.

Three-layer defense:
1. Startup recovery restores sessions from DB into memory cache
2. Tick-based zombie detection as periodic safety net
3. Rollback on injectMessage failure prevents inconsistent state

Changes:
- Add AgentSession.restore() static factory for DB-only session loading
- Extend SessionFactory with restoreSession for session restoration
- Rewrite runtime-recovery to restore sessions before observing them
- Add awaiting_human recovery (previously skipped entirely)
- Add zombie detection in executeTick() (sync detect + async recover)
- Add rollback in resumeWorkerFromHuman when inject fails

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

* fix(daemon): lazy-start SDK query on session restore to avoid 15s timeout

restoreSession() was eagerly calling startStreamingQuery() which starts
the SDK subprocess, but no message was queued in the async generator.
The SDK waited for user input that never arrived → 15s startup timeout.

- Remove eager startStreamingQuery() from restoreSession (lazy start)
- Add ensureQueryStarted() to injectMessage so SDK starts on demand
- Inject continuation messages for awaiting_worker/awaiting_leader groups
  after restore (both startup recovery and tick-based zombie detection)

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

* fix(daemon): sanitize colons in git branch names + simplify room tests

- Replace colons with hyphens in worktree branch names (room session IDs
  like planner:roomId:taskId:uuid are invalid git branch names)
- Simplify online room test goal descriptions to reduce LLM work time
- Split CI room-2/room-3 ... (continued)
Source Files on build 22740425041
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #22740425041
  • 245d63d0 on github
  • Prev Build on dev (#22707920336)
  • Next Build on dev (#22740825465)
  • 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