Guard ws adapter decode path against async message errors

Co-authored-by: Theo Browne <[email protected]>
This commit is contained in:
Cursor AgentandTheo Browne committed 2026-02-09 23:51:35 +00:00
1 parent f04d1204f9
commit b20067263b
1 file changed
+6 -1
+6 -1
View File
@@ -168,7 +168,12 @@ class WsNativeApiClient {
}
private async handleMessage(raw: unknown) {
const decoded = await this.decodeIncomingMessage(raw);
let decoded: string | null;
try {
decoded = await this.decodeIncomingMessage(raw);
} catch {
return;
}
if (!decoded) {
return;
}