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

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

Build:
DEFAULT BRANCH: dev
Ran 03 Mar 2026 11:17PM UTC
Files 142
Run time 6s
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

03 Mar 2026 11:14PM UTC coverage: 35.932% (-0.02%) from 35.947%
22647166951.15

push

github

web-flow
feat: mark orphaned sent messages as failed instead of re-dispatching (#179)

* wip: save work in progress from stuck session

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

* fix: prevent synthetic/tool_result messages from being re-dispatched on recovery

Skip isSynthetic=true messages and messages with tool_result-only content
in MessageRecoveryHandler to avoid incorrectly re-queuing SDK-internal
messages as orphaned user input on session restart.

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

* feat: mark orphaned sent messages as failed instead of re-dispatching

When the server crashes mid-flight, messages stuck in 'sent' status were
previously reset to 'saved' for automatic retry on next start. This caused
problems: tool_result messages (SDK-internal) could be re-dispatched, and
any partial side effects from the original run could be duplicated.

New approach:
- Mark orphaned messages as 'failed' so they surface in the UI as "not delivered"
- Skip synthetic (isSynthetic=true) and tool_result-only messages entirely
- User sees what was lost without any automatic re-dispatch

Changes:
- Add 'failed' to SendStatus type and DB CHECK constraint (migration 15)
- Recovery handler marks orphaned messages as 'failed' (not 'saved')
- SDK message query surfaces 'failed' messages to UI with sendStatus field
- SDKUserMessage.tsx shows "not delivered" badge for failed messages
- SDKUserMessage type gets optional sendStatus?: 'failed' field

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

* style: apply biome formatting

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

---------

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

9268 of 25793 relevant lines covered (35.93%)

18.29 hits per line

Source Files on job daemon-online-room-2 - 22647166951.15
  • Tree
  • List 142
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22647166951
  • a6b1fdda on github
  • Prev Job for on dev (#22588562830.5)
  • 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