Re-plan straight after an Undo when the profile changed #120

Closed
opened 2026-11-08 18:13:43 +00:00 by chris-kreidl · 2 comments
chris-kreidl commented 2026-11-08 18:13:43 +00:00 (Migrated from github.com)

After an Undo, the reverted-to version may still break the current schedule (it predates the change); the next trigger re-plans it. Consider re-planning straight after an Undo when the profile changed since that version.

Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.

After an Undo, the reverted-to version may still break the current schedule (it predates the change); the next trigger re-plans it. Consider re-planning straight after an Undo when the profile changed since that version. _Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08._
chris-kreidl commented 2026-11-08 20:05:37 +00:00 (Migrated from github.com)

What this is about. Plan → version history lets you Undo a re-plan, going back to an earlier version. If you've changed your schedule (days, hours) since that version, the restored version may not fit your current schedule. It stays that way until the next trigger (a logged ride, a missed session) re-plans it.

Status (checked 2026-11-08): unchanged; Undo doesn't start a re-plan.

Fix: after an Undo, re-plan straight away if the profile changed since that version was made. Small, once session 51 (#226, held re-plans) settles when re-plans run.

**What this is about.** Plan → version history lets you Undo a re-plan, going back to an earlier version. If you've changed your schedule (days, hours) since that version, the restored version may not fit your current schedule. It stays that way until the next trigger (a logged ride, a missed session) re-plans it. **Status (checked 2026-11-08):** unchanged; Undo doesn't start a re-plan. **Fix:** after an Undo, re-plan straight away if the profile changed since that version was made. Small, once session 51 (#226, held re-plans) settles when re-plans run.
chris-kreidl commented 2026-11-19 03:21:29 +00:00 (Migrated from github.com)

Status (checked 2026-11-18): still open. Session 51 (#226) has settled when re-plans run, which this was waiting on. revertPlan (src/server/plan.ts) still only calls revertActiveVersion and starts no re-plan.

**Status (checked 2026-11-18):** still open. Session 51 (#226) has settled when re-plans run, which this was waiting on. `revertPlan` (`src/server/plan.ts`) still only calls `revertActiveVersion` and starts no re-plan.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/trainer#120
No description provided.