### 问题描述 ## 测试 1 https://github.com/user-attachments/assets/6f2f4a27-4066-420f-a1ea-18cdcbfdf868 我是长时间使用浏览器,也有把MacBook盖了一下再打开 未知重现方法。估计长时间使用,SW重启的因素有关 但把代码复杂到新脚本就没事了 uuid不变的情况下,打开新网址也会发生同一问题 有看到实际值有更新 ## 测试 2 https://github.com/user-attachments/assets/9ebc752b-486d-4dc3-97cc-2359593f0888 ### 重现步骤 不详 ### 脚本猫版本 v1.2.0-beta.5 ### 操作系统以及浏览器信息 Brave 1.84.139 (Official Build) (arm64) Chromium: 142.0.7444.163 ### 补充信息 (选填) ```js async function i9(e, t, r) { let n = await e.sendMessage({ action: t, data: r }) , i = nA.getInstance().logger().with({ action: t, data: r, response: n }); if (i.trace("sendMessage"), null == n ? void 0 : n.code) throw console.error(n), n.message; try { return n.data } catch (e) { i.trace("Invalid response data", nO.E(e)); return } } ``` 里面的 `n.data` (`TypeError: Cannot read properties of undefined (reading 'data')`) 也就是 `e.sendMessage` 失败 return 了 undefined ---- ## 解析1 https://github.com/user-attachments/assets/53a54d3c-4678-41af-a854-af62cccd23b6 消息机制会发送东西至不存在或已关掉的 tabs