Skip to content

Live activity predictive line displays incorrectly if you are predicted to go below the glucose safety limit #2392

Closed

Description

@StijnvanderLippe

Describe the bug
There seems to be an issue with the predictive line in the live activity if you are expected to go below the glucose safety limit (before rising above the glucose safety limit). In this case, during the duration that you are expected to be below the glucose safety limit, there are two lines displayed. Note that this only happens if the "Use BG coloring" setting is enabled.

The predictive line in red is correct. The predictive line in green stays horizontal for the duration in which you are expected to be below the glucose safety limit. This part should not be there.

I've tried clearing the notification, closing Loop completely and reopening the app, but this makes no difference.

Attach an Issue Report

Loop Report 2026-01-13 20_04_42+01_00.md.txt

To Reproduce
Steps to reproduce the behavior:

  1. Enable the "Use BG coloring" setting in Live activity settings.
  2. The predictive line in the Loop app must go below the glucose safety limit, before rising above the glucose safety limit.
  3. Open your notification center
  4. See that the predictive line is duplicated during the time in which you are expected to be below the glucose safety limit

Expected behavior
The green horizontal line should not be displayed and only the red line should be displayed during this time.

Screenshots

Image

Phone

  • Hardware: iPhone 11
  • OS Version: iOS 26.1

Loop Version

  • Version Number: 3.10.0
  • Repo:

CGM

  • Device: Dexcom G7
  • Manager app: Dexcom App

Pump

  • Manufacturer: Insulet
  • Model: Omnipod Dash
  • Firmware version: 4.10.0 1.40

Activity

  1. marionbarker commented on Jan 14, 2026

    @marionbarker
    Contributor

    Thanks for reporting this.

    I was able to reproduce it - see the last test case below.

    My hardware is iPhone 15 pro running iOS 26.2.
    Branch is feat/dev-dana-medtrum (commit 0b7b75f)

    I then tested with a SE 2nd gen phone running iOS 18.7.2 and reproduced it there as well. However, it only shows up when Use BG coloring is enabled.

    Test

    My Live Activity plot did not have the flat green dashed line in my first attempts where the plot did not have an upward curve after dipping below the glucose safety limit:

    • I added 4 U of "fake" non-pump insulin to force the prediction line to go below the glucose safety limit
    • I deleted the 4 U and tried a smaller number of 0.8 u of "fake" non-pump insulin so the prediction was just barely below safety limit
    • I modified my correction settings so my current glucose was below target (left side of graphic below)

    I then did another test where I added "fake" non-pump insulin to lower glucose below safety limit and added "fake" carbs so the prediction would rise after the dip

    • This did reproduce the issue (right side of graphic below).
    Image
  2. StijnvanderLippe commented on Mar 2, 2026

    @StijnvanderLippe
    Author

    The issue is still present on 3.12 but now the colour is the issue. See two attached examples.

    The line is red even though the predctive line is above or within the target range.

    What I believe is happening:
    Consider the range that the predictive line covers. The lower portion of this range will be coloured red, regardless of the actual glucose value.

    For example, the predictive line is trending upwards: it starts at 6 mg/dL and rises to 10 mg/dL. The lower portion of the predictive line will be coloured red, e.g. the range between 6 and 7 mg/dL. This is demonstrated in the screenshots in the next comment.

    Similarly, if the predictive line is trending downwards: it starts at 10 mg/dL before lowering to mg/dL. Again the lower portion of the predictive line (between 6 and 7 mg/dL) will be coloured red. This is demonstrated in the screenshots in this comment.

    Example 1
    image

    Example 2
    image

  3. StijnvanderLippe commented on Mar 2, 2026

    @StijnvanderLippe
    Author

    Another example showing the weird behaviour.

    image

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