Task Type
Refactor
Context
The onboarding welcome step statically imports the complete provider and model settings flows in src/renderer/windows/main/onboarding/OnboardingPage.tsx. It also subscribes to provider/model/default-model data before those later steps are active. This violates the bundle-conditional, bundle-dynamic-imports, and rerender-defer-reads rules from the renderer React audit guidance.
The first-run welcome screen therefore pays the parse and subscription cost of later onboarding steps, increasing its critical-path work.
Definition of Done
References
- Code:
src/renderer/windows/main/onboarding/OnboardingPage.tsx
- Rules:
bundle-conditional, bundle-dynamic-imports, rerender-defer-reads
Additional Notes
Prefer extracting lazy step components over adding conditional branches around the existing top-level hooks.
This task is not reserved for the core team. Community contributions are welcome — if you would like to pick it up, leave a comment before you start so we can avoid duplicated work.
Task Type
Refactor
Context
The onboarding welcome step statically imports the complete provider and model settings flows in
src/renderer/windows/main/onboarding/OnboardingPage.tsx. It also subscribes to provider/model/default-model data before those later steps are active. This violates thebundle-conditional,bundle-dynamic-imports, andrerender-defer-readsrules from the renderer React audit guidance.The first-run welcome screen therefore pays the parse and subscription cost of later onboarding steps, increasing its critical-path work.
Definition of Done
References
src/renderer/windows/main/onboarding/OnboardingPage.tsxbundle-conditional,bundle-dynamic-imports,rerender-defer-readsAdditional Notes
Prefer extracting lazy step components over adding conditional branches around the existing top-level hooks.
This task is not reserved for the core team. Community contributions are welcome — if you would like to pick it up, leave a comment before you start so we can avoid duplicated work.