mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-16 13:03:31 +08:00
Telegram and desktop can attach to the same session while a turn is streaming. The WebSocket handler now tracks output callbacks per client and broadcasts session messages instead of replacing the previous subscriber. Telegram thinking deltas are accumulated before editing the placeholder so the preview does not collapse to the latest tiny chunk. Constraint: Desktop and IM adapters may observe the same active session concurrently Rejected: Keep a single session output callback | a later desktop view can steal Telegram's live content and completion events Confidence: high Scope-risk: moderate Directive: Do not collapse session output callbacks back to one callback without a multi-client streaming regression Tested: bun run check:server (828 pass); bun run check:adapters (358 pass); git diff --check Not-tested: Live Telegram Bot API smoke against the packaged app