Skip to content

fix(mobile): keep offline sync from overwriting newer resume positions - #425

Merged
altaywtf merged 13 commits into
mainfrom
fix/offline-position-writes
Oct 28, 2026
Merged

altaywtf merged 13 commits into
mainfrom
fix/offline-position-writes

Conversation

@altaywtf

@altaywtf altaywtf commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Change

A late offline-sync write can no longer overwrite a newer position the player saved, so resume never jumps backwards on another device.

sequenceDiagram
    participant Sync as Offline sync
    participant Writer as Position writer
    participant API as put.io
    Sync->>Writer: exclusive section
    Sync->>API: write 250 s
    API-->>Sync: ok
    Note over Writer: player's 400 s waited, untimed
    Writer->>API: write 400 s, lands last
Loading
  • The sync rechecks the signed-in owner after each read and write; a write that outlives its session publishes nothing.

Validation

  • Code changes: ./gradlew verify and ./gradlew :mobile:assembleProductionDebug :tv:assembleProductionDebug
  • Proof for each matching row of the AGENTS.md proof map

Unverified: no live fault injection; unit tests prove the ordering.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-28T06:40:47.066403Z 3553ada New commits
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2175da4432

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread mobile/src/main/kotlin/io/putdotio/android/playback/MobilePlaybackReporting.kt Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: efa0b75659

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread mobile/src/main/kotlin/io/putdotio/android/downloads/OfflinePlaybackPositions.kt Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bba1977e38

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread mobile/src/main/kotlin/io/putdotio/android/downloads/OfflinePlaybackPositions.kt Outdated
Comment thread mobile/src/main/kotlin/io/putdotio/android/downloads/OfflinePlaybackPositions.kt Outdated

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread mobile/src/main/kotlin/io/putdotio/android/downloads/OfflinePlaybackPositions.kt Outdated

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread mobile/src/main/kotlin/io/putdotio/android/downloads/OfflinePlaybackPositions.kt Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 60d93f0. Configure here.

@altaywtf
altaywtf merged commit 1e230f4 into main Oct 28, 2026
5 checks passed
@altaywtf
altaywtf deleted the fix/offline-position-writes branch October 28, 2026 07:11
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