Skip to content

Every X Days not breaking streak if X+1 days between check marks #2312

@Yang-Richard

Description

@Yang-Richard

Pre-submission checklist

  • I am submitting a bug report, not a feature request.
  • I have searched for similar issues, but did not find any matches.

Description

I have a habit that is tracked as "once every X day", in my case once every 7 days. I have a duration with 12 days in between, and my streak does not break. It only breaks if I reduce the frequency to "once every 6 days", which ends up being a 1 day gap between the two events.

It looks like the app is calculating the duration on both ends of the days that are checked, instead of X days between the two days that have a check mark.

I.e. if you set a habit as "once every 7 days" and have activities on the 1st and 13th, it will not break the streak. I would expect the streak to break with any duration longer than the 1st and 9th, which is more than 7 days between events.

In the screenshot below, I have check marks on Jan 20th and Feb 1st. I would expect the streak to break since there were 12 days between these two events.

Steps to reproduce

  1. Go to a habit that is set to "once every X days"
  2. Check off two days that have any less than X*2 days in between.
  3. The streak is not broken.
  4. Check off two days that are X*2+1 days in between.
  5. The streak is broken.

System information

  • Phone: Samsung S24 Ultra
  • Phone Operating System: Android Version 16
  • App version: 2.3.1

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions