Skip to content

Keep native insulin uploads pending when historical profile is missing - #28

Merged
siriushex merged 2 commits into
mainfrom
codex/native-upload-profile-retry
Oct 23, 2026
Merged

siriushex merged 2 commits into
mainfrom
codex/native-upload-profile-retry

Conversation

@siriushex

Copy link
Copy Markdown
Owner

Depends on PR #27 (same reviewed source base). This change adds a separately verified, minimal patch for pinned AAPS 4.0.0-rc1; it does not modify the installed AAPS or Copilot therapy behavior.

The stock interval uploader can advance a synchronization cursor without a network request when the historical profile is unavailable. Return false for missing-profile CREATE/UPDATE and retain the extended-bolus cursor for normal retry. Preserve imported and identifier-only skip rules. Do not substitute today's profile or reset synchronization IDs.

Three failures reproduced before the fix. The combined native patch recipe passed 485 tests, including 87 uploader tests and six new cases, with no failures/skips. Unchanged suites reused verified Gradle outputs. All 22 recipe/JSON-isolation checks passed; the pinned upstream checkout was restored clean. Tests cover ordinary extended bolus, emulated basal, temporary basal, invalidation, HTTP failure and later successful retry. Exact-head CI is required before integration.

Limitation: an irretrievable historical profile holds that collection. This patch neither recovers previously skipped history nor establishes destination-bound completeness or physical pump delivery. The recommended meal-time gate remains closed. No phone/server deployment, APK publication or therapy change.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T06:41:01.776437Z d73bab0 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@siriushex
siriushex merged commit 428fa15 into main Oct 23, 2026
6 checks passed
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.

1 participant