Skip to content

BUG: Completed reps logged as one short when ROM reps precede working set #703

Description

@9thLevelSoftware

Bug Report

Type: Bug
Reporter: shredness_10860
Device: Pixel 9 XL Pro
OS: Android v17
App Version: 0.9.6 (post AMRAP fix)
Repo: Mobile (project-phoenix-mp)

Summary

Completed reps are logged as one short of actually completed. When a user completes ROM reps followed by a working set, the final rep count in the log is off by one.

Steps to Reproduce

  1. Select any exercise
  2. Set reps to 7
  3. Start exercise
  4. Complete first 3 ROM reps
  5. Complete the working set of 7 reps
  6. Review log

Expected Behavior

7 reps should be recorded in the workout log.

Actual Behavior

Only 6 reps are recorded in the workout log.

Impact

Rep counting is inaccurate for exercises with ROM reps followed by working sets. This affects workout tracking accuracy and could impact user progress records. The issue appears to be an off-by-one error in rep counting logic, possibly related to how ROM reps and working set reps are tallied.

Notes

  • Reporter mentions this is "post AMRAP fix" — may be a regression from recent AMRAP-related changes
  • Affects any exercise when ROM reps are completed before the working set

Original Discord Report

<@1502654170031849644>  Completed reps are logged as one short of actually completed.

Device: Pixel 9 XL Pro
OS: Android, v17
App: Version 0.9.6 (post AMRAP fix)

steps to reproduce:
-select any exercise, set reps to 7.
-start exercise, complete first 3 ROM reps, complete the working set of 7 reps.
-review log, only 6 reps recorded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions