Files
image-workbench-desktop/src
qiqi 487eeadf1f
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 2m24s
chore(plugin-style): 插件样式注入加自检 + 复盘写进 DESKTOP_PITFALLS
这次事故(CSP nonce 让插件动态 <style> 被整段丢弃)已修,补两道防线,避免再静默复发:

- src/runtime-plugin-loader.js:注入后检查 node.sheet;head 场景为 null 时自动改挂 body;
  仍为 null 就写 _boot.log 并 console.warn(不再静默丢样式)
- src/storage-file.js:对外暴露 logLine(),供其它模块写 _boot.log 做诊断
- docs/DESKTOP_PITFALLS.md:新增「2026-11-27 插件样式全丢复盘」,写清 nonce → unsafe-inline 失效
  的链条、同根因的历史(v3.26.7 / v3.26.9),以及四条铁律(index.html 禁内联、样式自检、
  改 CSP 或 index.html 必须桌面端实机验面板)
2026-11-27 22:10:17 +08:00
..