mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-31 03:30:50 +00:00
Header play/pause button chained two unsetCurrentTask dispatches (toggleStart → unsetCurrentTask → syncTrackingStopToSession$ → pauseFocusSession → syncSessionPauseToTracking$ → unsetCurrentTask). The second call ran with currentTaskId already null, so the reducer captured null into lastCurrentTaskId, causing the next toggleStart to fall back to the top task instead of the user's choice. Fix at two layers: - Effect: guard syncSessionPauseToTracking$ with currentTaskId$ so it skips the redundant dispatch. - Reducer: make unsetCurrentTask idempotent for lastCurrentTaskId when currentTaskId is already null, defending the invariant against any similar chain. |
||
|---|---|---|
| .. | ||
| add-task-bar | ||
| dialog-add-time-estimate-for-other-day | ||
| dialog-deadline | ||
| dialog-select-date-time | ||
| dialog-task-detail-panel | ||
| dialog-time-estimate | ||
| dialog-view-archived-task | ||
| dialog-view-task-reminders | ||
| pipes | ||
| select-task | ||
| store | ||
| task | ||
| task-attachment | ||
| task-context-menu | ||
| task-detail-panel | ||
| task-list | ||
| task-summary-table | ||
| task-summary-tables | ||
| tasks-by-tag | ||
| util | ||
| _shared-tag-project-styles.scss | ||
| _task-shared.scss | ||
| filter-done-tasks.pipe.spec.ts | ||
| filter-done-tasks.pipe.ts | ||
| markdown-paste.service.ts | ||
| mention-config.service.ts | ||
| move-to-archive.spec.ts | ||
| short-syntax.spec.ts | ||
| short-syntax.ts | ||
| task-focus.service.ts | ||
| task-shortcut.service.spec.ts | ||
| task-shortcut.service.ts | ||
| task.model.ts | ||
| task.service.spec.ts | ||
| task.service.ts | ||
| task.test-helper.ts | ||