Skip to content

fix(bundle-update): skip stale pre-launch task when buildNumber changes#41

Merged
originalix merged 6 commits intomainfrom
fix/bundle-update-build-number-check
Mar 19, 2026
Merged

fix(bundle-update): skip stale pre-launch task when buildNumber changes#41
originalix merged 6 commits intomainfrom
fix/bundle-update-build-number-check

Conversation

@huhuanming
Copy link
Contributor

@huhuanming huhuanming commented Mar 19, 2026

Summary

  • Add buildNumber change detection in processPreLaunchPendingTask for both Android and iOS
  • When the native buildNumber has changed (e.g. after an app update), skip executing stale pending tasks to prevent outdated bundle updates

Test plan

  • Verify pre-launch pending tasks still execute normally when buildNumber hasn't changed
  • Verify stale tasks are skipped after an app update that changes buildNumber
  • Test on both Android and iOS

🤖 Generated with Claude Code


Open with Devin

huhuanming and others added 3 commits March 19, 2026 23:34
Add buildNumber change detection in processPreLaunchPendingTask for both
Android and iOS to prevent executing outdated tasks after app updates.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add a delayedFreeze prop to control whether freeze/unfreeze is delayed
by 200ms on tab switch. Defaults to immediate freeze for better iPad
sidebar switching experience.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

huhuanming and others added 3 commits March 19, 2026 23:47
…stored value

Read buildNumber from the task's scheduledEnvBuildNumber field set by JS
at scheduling time, instead of relying on getNativeBuildNumber which is
only updated after a successful bundle install.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@originalix originalix merged commit 808e90e into main Mar 19, 2026
4 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.

2 participants