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

stacklok / toolhive-studio / 29571051485

17 Jul 2026 09:44AM UTC coverage: 71.713% (+0.5%) from 71.204%
29571051485

Pull #2475

github

samuv
fix(chat): harden Effect runtime adapters after external review

Make readiness and runtime retrieval atomic, type adapter programs against
ChatServices, and tighten domain-error narrowing plus agent/settings edge cases.

Co-authored-by: Cursor <cursoragent@cursor.com>
Pull Request #2475: refactor(chat): migrate main-process chat to Effect domain services

5476 of 8187 branches covered (66.89%)

871 of 1363 new or added lines in 42 files covered. (63.9%)

1 existing line in 1 file now uncovered.

8153 of 11369 relevant lines covered (71.71%)

137.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/main/src/chat/streaming.ts
1
import type { WebContents } from 'electron'
2
import { runChatPromise } from './runtime'
3
import { ChatStreamService } from './streaming/chat-stream-service'
4
import type { ChatRequest } from './types'
5

6
export type { ChatRequest }
7

8
export async function handleChatStreamRealtime(
9
  request: ChatRequest,
10
  streamId: string,
11
  sender: WebContents
12
): Promise<void> {
NEW
13
  await runChatPromise(
×
14
    ChatStreamService.handleChatStreamRealtime(request, streamId, sender)
15
  )
16
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc