You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Live activity predictive line displays incorrectly if you are predicted to go below the glucose safety limit #2392
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.
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).
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.
Activity
marionbarker commentedon Jan 14, 2026
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 coloringis 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 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
StijnvanderLippe commentedon Mar 2, 2026
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

Example 2

StijnvanderLippe commentedon Mar 2, 2026
Another example showing the weird behaviour.