chen08209:FlClash 重整核心启动归属,暂不自动重启崩溃进程
chen08209 说明开发分支已让桌面核心拥有单一生命周期管理者:启用 TUN 交给 Helper 后重启核心,并重新应用配置与启动监听。异常退出会显示断开与错误提示,可点核心卡片重启;暂不自动重启,以免错误配置导致静默循环。该评论请用户在下一版本复测,未宣称原现场已验证。
作者原文@chen08209Thanks for the thorough analysis, and for correcting the stack part. The start path you traced has been rewritten on our development branch for the next release: the desktop Core now has a single lifecycle owner, and when enabling TUN hands the Core over to the Helper, the app restarts the Core and then re-applies the profile together with the listener start for the new process, instead of relying on an earlier request still being current. Reading that path, we could not find a way for the listener start to be dropped any more; a superseded request only skips its own start because the newer request sends one itself. On the Core side, a listener start that arrives before the config is still recorded and the listeners come up as soon as the config is applied, as you noted.
For an unexpected Core exit (your
kill -9test), the app marks the Core as disconnected and shows an error banner, and the Core card on the dashboard restarts it with one tap. We are not restarting it automatically for now, so that a Core that crashes on its config does not end up in a silent restart loop.Please try the first TUN enable again on the next release; if the Core still comes up without listeners, the app log from that run will tell us which request it took.