Skip to content

Conversation

@dnzxy
Copy link
Contributor

@dnzxy dnzxy commented Nov 15, 2025

Summary

This PR removes the "400 guard" (via TrioCustomOrefVariables shouldProtectDueToHIGH) added in #622. That logic disabled SMBs and forced a neutral temp basal whenever the CGM reported flatlined HIGH values (400 mg/dL) [to avoid dosing on potentially invalid readings].

Changes

  • Remove shouldProtectDueToHIGH from TrioCustomOrefVariables (model + decoding + constructor).
  • Remove glucoseIsHIGH helper and all references.
  • Delete 400-guard logic in determine-basal.js (no forced neutral TBR, no SMB block).
  • Update webpack bundle and oref0_source_version.txt accordingly.

Rationale

The original guard was only meant as a temporary safety measure for suspicious HIGH readings. It’s no longer needed and diverges from upstream oref, so we’re removing it to restore standard oref behavior, to aid FCL users in underserved populations that semi-frequently run into situations where they get stuck on 400 mg/dL for a prolonged time period.

@oddst
Copy link

oddst commented Nov 16, 2025

Really happy to see this change likely being done. The current behavior has been a problem for teenagers with Trio, when they get into troubles and their parents cannot contact them to remind them that Trio stops automatic corrections at 400 mg/dL . Of the two options, I believe this new one is the least worst choice - as being really stuck high happens more often than what the previous behavior protection...! Thanks...

@@ -1,6 +1,7 @@
oref0 branch: dev - git version: 37896e5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this could be updated to dev (83fd5de) given that #622 was merged.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants