794 B
794 B
@gsxdsm/fusion
| @gsxdsm/fusion |
|---|
| patch |
Fix text not being passed into Planning Mode from quick entry
Fixed a stale closure bug in PlanningModeModal where the auto-start useEffect referenced handleStartPlanning before it was declared. The fix:
- Moved handleStartPlanning definition before the auto-start useEffect
- Removed the redundant handleStartPlanningWithPlan callback
- Modified handleStartPlanning to accept an optional planOverride parameter
- Fixed the onClick handler to wrap handleStartPlanning in an arrow function
- Moved hasAutoStartedRef assignment inside setTimeout to prevent early triggering that blocked subsequent effect runs
This ensures text entered in QuickEntryBox or InlineCreateCard is properly passed to the Planning Mode modal when the Plan button is clicked.