Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

An assisted pull-up brought down to 0 kg of help climbs reps instead of asking for a weight (#232)

Duarte Santos1d715f178159
diff --git a/frontend/src/lib/assisted.test.js b/frontend/src/lib/assisted.test.js
index 1a000d537..603486375 100644
--- a/frontend/src/lib/assisted.test.js
+++ b/frontend/src/lib/assisted.test.js
@@ -73,6 +73,14 @@ describe('progression asks for less help', () => {
expect(read.weight).toBe(20)
})
+ // Progression itself leads here: once the help is gone the machine is a plain pull-up, and it
+ // climbs reps like one — not "No weight logged", sending you back to the plan's 30 kg of help.
+ it('climbs reps once it has taken all the help away', () => {
+ const p = nextPrescription(hist(0), cfg)
+ expect(p).toMatchObject({ kind: 'up', weight: 0, reps: 9 })
+ expect(nextPrescription(hist(5), { ...cfg, weight: 5 })).toMatchObject({ kind: 'up', weight: 0 })
+ })
+
it('still adds weight on an ordinary lift', () => {
const plain = { id: PLAIN, sets: 1, reps: 8, weight: 60, prog: 'linear', inc: 5 }
const S = { unit: 'kg', workouts: [{ d: '2026-09-08', start: 1, entries: [{ id: PLAIN, target: plain, sets: [set(60, 8)] }] }] }
diff --git a/frontend/src/lib/progression.js b/frontend/src/lib/progression.js
index 23b796a37..571495a0e 100644
--- a/frontend/src/lib/progression.js
+++ b/frontend/src/lib/progression.js
@@ -225,8 +225,10 @@ export function plannedOf(cfg) {
}
// Work with no load to enter climbs in reps, then sets, when it is logged at 0: a bodyweight
// exercise, or one whose equipment is not a load of its own — an ab wheel, a stability ball, a
-// bosu (isLoadedEq). Only a loaded implement logged at 0 is a weight nobody typed in.
-const climbsReps = cfg => isBw(cfg) || !isLoadedEq(cfg.id)
+// bosu (isLoadedEq). Only a loaded implement logged at 0 is a weight nobody typed in. An
+// assistance machine at 0 is the one exception on a stack: no help left is where its own
+// progression leads (issue #232), and from there the work is a plain pull-up or dip.
+const climbsReps = cfg => isBw(cfg) || !isLoadedEq(cfg.id) || isAssisted(cfg)
const PLAN_KEYS = ['sets', 'reps', 'repsMin', 'sec']
const samePlan = (a, b) => PLAN_KEYS.every(k => (a[k] ?? null) === (b[k] ?? null))