Flowntier v0.4.4 — Fix skip loop + React hooks crash
Pre-release
Pre-release
What changed in v0.4.4
This patch fixes two critical bugs in v0.4.3:
- BUG-FRONTEND-RT-10: a 'Rendered more hooks than during the previous render' crash on first launch. The new workdirSkipped useState/useEffect was placed AFTER the
if (!workdirReady) return <div/>early-return in App.tsx, violating React's Rules of Hooks. Fixed by moving the new hooks BEFORE the early return. v0.4.3 was broken in production — anyone installing it would see the '出错了' crash screen on first launch. - BUG-FRONTEND-RT-9: 稍后设置 button caused an infinite re-render loop. The old onSkip set workdir=null which triggered WorkdirSetup to re-render. Fix: persist a workdir_skipped flag in kv, and the render condition now checks
if (workdir === null && !workdirSkipped). After skip, the user goes to Welcome or the dashboard and the dialog stays gone. - BUG-FRONTEND-RT-8: when set_workdir_with_nwt fails, the catch block only console.error'd. Now also alert the user with a localized error message.
v0.4.4 is the recommended upgrade from any earlier v0.4.x
v0.4.3 was broken — anyone installing v0.4.3 would see the '出错了 v0.4.2' crash screen on first launch. v0.4.4 fixes that. If you have v0.4.0/v0.4.1/v0.4.2 installed, upgrade to v0.4.4 directly.