A backdated threshold save doesn't re-plan #145
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#145
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?
(session 28) A threshold save re-plans only when today's FTP changes (
ftpTrigger). A backdated entry that leaves today's FTP alone still rescores rides and moves CTL/ATL, but queues no re-plan; the next trigger sees the new load. Add a load-changed trigger if that lag matters.Moved from docs/PROGRESS.md → Follow-ups → Later on 2026-11-08.
What this is about. In Settings → Thresholds you can add an FTP dated in the past. That rescores the rides since that date, which moves fitness and fatigue. But a re-plan is queued only when today's FTP changes (
ftpTriggerinsrc/server/replan/triggers.ts), so a backdated entry changes your load without the plan reacting until the next trigger (a ride, a missed session).Status (checked 2026-11-08): unchanged.
Fix, if the lag matters: a "load changed" trigger when a rescore moves recent CTL/ATL by more than a small amount. Session 51 (#226) reworks when re-plans run, so it's the place to decide.
Status (checked 2026-11-18): still open. Session 51 (#226) didn't add a load-changed trigger.
addThresholdanddeleteThreshold(src/server/athlete.ts) rescore, thenonThresholdSavedre-plans only when today's FTP changes (ftpTrigger,src/server/replan/triggers.ts:169).