rwadurian/backend/mpc-system/services/service-party-app/electron
hailin d051178801 fix(electron): add gRPC connection check before subscribing to messages
The app was crashing with "CANCELLED: Cancelled on client" error when
opening the app a second time. This happened because:

1. When window was reopened, old gRPC streams were in cancelled state
2. prepareForSign/prepareForKeygen tried to subscribe on cancelled streams
3. The error was unhandled and crashed the app

Changes:
- Add isConnected() check in prepareForSign() and prepareForKeygen()
- Throw meaningful error when gRPC client is not connected
- Wrap all prepareFor* calls in try-catch in main.ts
- Return user-friendly error message instead of crashing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 13:04:19 -08:00
..
modules fix(electron): add gRPC connection check before subscribing to messages 2025-12-31 13:04:19 -08:00
types fix(service-party-app): 添加bech32类型声明和清理脚本 2025-12-28 20:14:17 -08:00
main.ts fix(electron): add gRPC connection check before subscribing to messages 2025-12-31 13:04:19 -08:00
preload.ts feat(service-party-app): implement co-sign multi-party signing 2025-12-30 18:36:11 -08:00