Skip to content

Loop remote carbs: allow future carbs up to 4 h for the future_carbs_4h customization #815

Closed

Description

@bjorkert

Users who build Loop with the Loop and Learn customization future_carbs_4h would like to enter remote carbs further ahead from LoopFollow.

future_carbs_4h raises LoopConstants.maxCarbEntryFutureTime in Loop from 1 h to 4 h. Loop validates remote carb entries against that same constant, so a customized Loop already accepts remote carbs up to 4 h ahead. LoopFollow caps the time at 1 h ahead (maxFutureHours in LoopAPNSCarbsView and LoopCarbEditSheet), which blocks this. An unmodified Loop still rejects anything beyond 1 h, so the limit needs to be a setting with 1 h as the default.

Activity

  1. changed the title [-]Loop remote carbs: support the future_carbs_4h and 2hlollipop customizations[/-] [+]Loop remote carbs: allow future carbs up to 4 h for the future_carbs_4h customization[/+] on Nov 5, 2026
  2. github-actions commented on Nov 9, 2026

    @github-actions
    Contributor

    Closed by #823, merged into dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions