Hi. I have the OTA updates implemented there. Can you make it so instead of autoupdate…
- User
Hi. I have the OTA updates implemented there. Can you make it so instead of autoupdate check on startup - instead I manually check for updates in some settings tab, and if there is an update available I can download and apply it (eg restart the app or whatever)
Assistant
Let me read the key files.
Assistant
Let me check what the OTA plugin API provides and look at the main.tsx/mainApp.tsx files.
Assistant
Now let me check the mobile settings helpers.
Assistant
Now I have the full picture. Let me implement the changes.
Assistant
Good — only the files I'm already modifying use those utils. Let me implement everything.
Assistant
Now rewrite the bootstrap to skip auto-check and instead honor a one-shot apply flag:
Assistant
Now rewrite the desktop settings update section:
Assistant
Now the mobile version:
Assistant
Now clean up the unused storage utilities and the old import in ota-bootstrap:
Assistant
Now check if
OTA_AUTO_CHECK_STORAGE_KEYis still imported in storage.ts since we removed its only usage there:Assistant
Let me verify nothing else references the old storage utils or the auto-check key:
Assistant
Clean. Let me verify the build works:
Assistant
No type errors. Here's a summary of the changes:
What changed:
-
ota-bootstrap.ts— Removed auto-check on startup. Now always mounts the bundled app immediately, unless a one-shotOTA_APPLY_PENDING_KEYflag is set in localStorage (set when user clicks "Apply update" in settings), in which case it downloads and applies the OTA update, then clears the flag. -
SettingsUpdatesSection.tsx(desktop) — Replaced the auto-check checkbox with:- Shows current version
- "Check for updates" button that fetches the manifest
- If update available: shows the new version + "Apply update & restart" button
- Handles up-to-date, error, and checking states
-
MobileUpdatesSection.tsx— Same flow, using the mobile native row components. -
vite.config.ts/vite.ota.config.ts— Injects__APP_VERSION__from package.json so the frontend can compare versions.
-
- User
branch out and commit
Assistant
I'll skip the
.gitignorechange since that's unrelated. Let me create a new branch and commit just the OTA changes.Assistant
Done. Committed on branch
manual-ota-updates(025cfc3). The only remaining unstaged change is the unrelated.gitignoremodification.