Re-plan straight after an Undo when the profile changed #120
Labels
No labels
accessibility
area:accounts
area:ai-evals
area:look
area:maps
area:platform
area:rides-progress
area:riding
area:today-plan-coach
area:ui-shell
bot:blocked
bot:failed
bot:pr
bot:waiting
bot:working
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
later
now
owner-check
parked
question
ready
session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/trainer#120
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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.
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 callsrevertActiveVersionand starts no re-plan.