9068ce3108ac1217a33d9128a3b0bf8e3f45588c
With SNOWLUMA_HOOK_AUTOLOAD=1, the QQ window came up blank — no QR code, login stuck. Cause: the native enumerator (get_all_main_process_ids) returned the main QQ pid plus 2 zygote subprocesses because their cmdline contains "qq" and they transiently inherit wrapper.node via fork copy-on-write. Auto-load fired loadModuleManual for all three, spawning an in-process resolver thread inside each zygote. Renderer processes Electron later forked from those zygotes then inherited those resolver threads + the partially-initialised hook state, which breaks QQ's IPC and prevents the login UI from rendering. Add `shouldAutoLoadPid` which reads /proc/<pid>/cmdline and returns false when it contains `--type=` (Electron child process marker: zygote / renderer / gpu-process / utility). Manual loadProcess() is unaffected — operators picking PIDs from WebUI keep full control. SNOWLUMA_HOOK_AUTOLOAD_ALL=1 disables the filter as an escape hatch. Verified on tempserver: container restart with autoload=1 now shows the QR-code login screen as expected, and only the main qq pid gets the mojo.<pid>.*.sock pair (zygotes stay clean).
❄️ SnowLuma
Next Remote Protocol Framework.
关于项目
项目处于开发初期,仅支持部分功能,高速迭代中,随时可能出现破坏性更新。
鸣谢
LagrangeV2 - Proto
NapCatQQ - Scaner/Packet
辅助编程
推荐 Opus4.6 + Gemini3.1pro 对本项目辅助开发
本项目大量使用Ai技术。
加入我们
Languages
TypeScript
98.9%
CSS
0.5%
JavaScript
0.5%