rwadurian/backend/mpc-system/services/service-party-app/electron/modules
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
..
account-client.ts fix(co-sign): fix threshold_n display and add missing fields in GetSignSessionByInviteCode 2025-12-31 01:47:08 -08:00
address-derivation.ts feat(service-party-app): 添加SQLite存储和Kava区块链集成 2025-12-28 19:45:45 -08:00
database.ts feat(mpc-system): 增强连接可靠性和消息去重机制 2025-12-29 07:37:03 -08:00
grpc-client.ts fix(grpc): prevent stream race condition from triggering reconnection 2025-12-31 08:57:44 -08:00
kava-client.ts feat(service-party-app): 添加SQLite存储和Kava区块链集成 2025-12-28 19:45:45 -08:00
kava-tx-service.ts feat(service-party-app): add Kava network switch (mainnet/testnet) 2025-12-30 10:31:27 -08:00
storage.ts feat(service-party-app): 添加签名功能并重命名应用 2025-12-28 08:00:00 -08:00
tss-handler.ts fix(electron): add gRPC connection check before subscribing to messages 2025-12-31 13:04:19 -08:00