fix: 修复测试消息重复显示和详细日志输出

- 删除重复的测试消息通信模块
- 添加 openclaw-log 事件将详细日志发送到界面
- 界面监听并显示 OpenClaw 详细日志
- 日志包含:连接状态、发送请求、接收消息、响应状态、错误诊断

现在连接 OpenClaw 时会看到详细日志:
[OpenClaw] ========== 开始连接 ==========
[OpenClaw]  WebSocket 连接已建立 | 就绪状态:1
[OpenClaw] 📤 发送 connect 请求...
[OpenClaw] 📥 收到消息 (长度:123 字节)
[OpenClaw] 响应: 成功 /  失败
This commit is contained in:
2026-03-10 02:16:26 +08:00
parent f2da800bfa
commit 2552c82b97
36 changed files with 6192 additions and 26 deletions

29
resources/icon.svg Normal file
View File

@@ -0,0 +1,29 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256">
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#00d8ff;stop-opacity:1" />
<stop offset="100%" style="stop-color:#0099cc;stop-opacity:1" />
</linearGradient>
</defs>
<!-- 背景圆 -->
<circle cx="128" cy="128" r="120" fill="url(#grad1)"/>
<!-- 机器人头部 -->
<rect x="76" y="70" width="104" height="90" rx="15" fill="#ffffff"/>
<!-- 眼睛 -->
<circle cx="105" cy="105" r="12" fill="#00d8ff"/>
<circle cx="151" cy="105" r="12" fill="#00d8ff"/>
<!-- 嘴巴 -->
<rect x="103" y="130" width="50" height="8" rx="4" fill="#00d8ff"/>
<!-- 天线 -->
<line x1="128" y1="70" x2="128" y2="45" stroke="#ffffff" stroke-width="6"/>
<circle cx="128" cy="35" r="10" fill="#ffffff"/>
<!-- 企业微信标志元素 -->
<path d="M 180 180 L 210 180 L 210 210 L 180 210 Z" fill="none" stroke="#ffffff" stroke-width="3" opacity="0.5"/>
<circle cx="195" cy="195" r="8" fill="#ffffff" opacity="0.5"/>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB