cc-haha/release-notes/v0.5.14.md
2026-06-16 17:50:55 +08:00

33 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# v0.5.14
> **Hotfix**:修复三个 v0.5.12v0.5.13 的回归。
## 修复
### 1. Plugin seed 打进官方安装包(#58 + #59
**现象**v0.5.12 / v0.5.13 的官方安装包里Settings → Plugins 点 Install 安装 reverse-engineering / image-gen 报 `not found in marketplace cc-haha-builtin`
**根因**release-desktop.yml / build-desktop-dev.yml 把 `electron:build` 的步骤内联了但漏抄 `build:plugin-seed`。3 个本地构建脚本也漏了。结果产物里没有 `plugin-seed/` 目录。
**修复**5 处构建路径全部加上 `build:plugin-seed`package-smoke inspector 三平台新增 seed 存在断言,再 drift 就发不出去。
### 2. SDK WebSocket 1 Hz 重连风暴(#60
**现象**:用户诊断导出显示 3 个幽灵 CLI 子进程以 ~1次/秒 持续 5 分钟尝试重连 SDK endpoint全被 server 拒绝。990 条 `[WS] Rejected SDK connection` 把 server 事件循环打满 → 所有 REST API`/api/sessions``/api/settings``/api/models`120s 超时 → 桌面 UI 完全卡死。
**根因**session-ingress 接受 TCP 握手后再做应用层 auth`authorizeSdkConnection`)→ 拒绝时 `ws.close(1008, 'Invalid SDK token')`。Client `PERMANENT_CLOSE_CODES` 只有 `{1002, 4001, 4003}`,不含 1008 → 当临时错误。但 `open` 已经触发(重置 `reconnectAttempts=0`backoff 永远停在 `1000ms × 2^0 = 1s` → 无限循环。
**修复**`1008` 加入 `PERMANENT_CLOSE_CODES`。收到 1008 立即 `state='closed'`CLI 正常退出不再重试。
## 升级注意
- 装上 v0.5.14 后首次启动,`registerSeedMarketplaces` 会把 v0.5.12/v0.5.13 残留的陈旧 `cc-haha-builtin` installLocation 覆盖为真实包内路径Install 按钮恢复正常。无需手动清理。
- 如果你之前碰到 UI 卡死需要杀进程才能用v0.5.14 后不会再出现(幽灵 CLI 立即退出而不是 1Hz spam server
## PR
- #58 fix(release): ship the cc-haha-builtin plugin seed in packaged builds
- #59 fix(release): wire build:plugin-seed into the local platform build scripts
- #60 fix(cli): stop 1 Hz SDK reconnect storm after session token rejection (close 1008)