rwadurian/backend/mpc-system/services/service-party-app/electron/modules
hailin 66a718ea72 fix(electron): properly cleanup gRPC message stream after keygen/sign
Root cause: After keygen/sign completion, the gRPC message stream was not
unsubscribed. On the second operation, prepareForSign/prepareForKeygen
would try to cancel the stale stream, causing "CANCELLED: Cancelled on client".

Changes in tss-handler.ts:
- Add grpcClient.unsubscribeMessages() in all cleanup paths:
  - participateKeygen close handler
  - participateKeygen error handler
  - participateSign close handler
  - participateSign error handler
  - cancel() method
- Reset sessionId and partyId in all cleanup paths

Changes in main.ts:
- Add reconnection logic in app 'activate' event for macOS

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 13:07:43 -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): properly cleanup gRPC message stream after keygen/sign 2025-12-31 13:07:43 -08:00