Skip to content

v0.2.1 — settings panel honesty fix

Choose a tag to compare

@Logocceai Logocceai released this 15 Sep 03:49
· 9 commits to main since this release

修复:服务不在时,面板不再显示假数值

serve 服务没在跑时,设置面板过去照样渲染静态标记——背景模糊 0px、背景压暗 0%、开关全灭、填充按钮空白。用户读到的是"我的配置被清空了",实际只是服务已死;而没有 value 属性的 <input type="range"> 还会默认停在 min/max 中点,于是滑块画在中间、旁边写着 0。

  • 面板:服务不可用时进入明确的离线态(控件归零 + ⚠ 提示条 + 修复命令 + 重试按钮 + 面板置灰),面板打开期间每 4 秒心跳重试,服务恢复后自动回到真实数值
  • serve:重复启动会被拒绝并报出占用端口的 pid;请求处理异常不再打死整个进程
  • serve --port N:此前被配置文件里的端口静默覆盖(打印的是 N,实际连的是旧端口),已修复
  • 新增 serve --detach:让服务脱离启动它的终端/智能体会话存活。前台启动的 serve 会随父进程被回收,面板随即离线——这是本次面板显示错误的真正原因
  • skill pack 新增 3 条实战坑位(面板假数值、后台服务生命周期、CDP exceptionDetails 静默失败)

Fix: the panel stops showing fake values

When the serve service was down, the panel still rendered its static markup: 0px blur, 0% dim, both toggles unchecked, a blank fit button. That reads as "my settings were wiped" when the service is simply gone — and a value-less <input type="range"> defaults to the midpoint of min/max, drawing a slider at half travel next to a 0 label.

  • Panel — an explicit offline state (zeroed controls, ⚠ banner with the fix command, retry button, dimmed body) plus a 4s heartbeat while open, so it self-heals when the service returns
  • serve — a duplicate start is refused and reports the pid that owns the port; a rejected request no longer kills the process
  • serve --port N — was silently overridden by the stored config (the flag was printed but the old port was dialed)
  • serve --detach — backgrounds the service so it outlives the shell or agent session that started it. A foreground serve is reaped with its parent, which is what took the panel down

Upgrade / 升级

ZCode: re-run Get on the zcode-beautify card, or re-clone. Start the service with node dist/cli.js serve --detach.

两个 zip 附件为离线备用;仍以 GitHub 链接为主路径。Zips are attached for offline use; the GitHub link stays the primary path.