Files
dev-claudecode 5cf237941a fix(dingtalk): recover panic in stream loop to prevent process crash (#1390)
The upstream dingtalk-stream-sdk-go v0.9.1 has a race condition in
processLoop (client.go:161) that causes "send on closed channel" panic
after overnight idle. The fix exists in upstream PRs but is not yet
merged/released.

Add defer/recover around streamClient.Start() so the panic is caught
and the existing reconnect loop can re-establish the connection instead
of crashing the entire cc-connect process.

Closes #1390

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-23 07:30:20 +08:00
..