Commit 3c58abd
fix: catch unhandled promise rejections in fire-and-forget async calls
Adds .catch() handlers to five async call sites where Promise rejections
were silently discarded via `void`, creating unhandled rejection risks:
- gmail-ops.ts: startGmailWatch renew timer callback
- feishu/monitor.bot-identity.ts: retryBotIdentityProbe fire-and-forget
- feishu/comment-handler.ts: cleanupTypingReaction fire-and-forget
- feishu/comment-dispatcher.ts: typingReaction.cleanup fire-and-forget
- telegram/bot-message-dispatch.ts: reactionApi remove promise chain
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>1 parent 64015e7 commit 3c58abd
4 files changed
Lines changed: 8 additions & 4 deletions
File tree
- extensions
- feishu/src
- telegram/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | 331 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2964 | 2964 | | |
2965 | 2965 | | |
2966 | 2966 | | |
2967 | | - | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
2968 | 2970 | | |
2969 | 2971 | | |
2970 | 2972 | | |
| |||
0 commit comments