Repository navigation
Make desktop updates explicit, qualified, and recoverable - #9356
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4fe300ced8
ℹ️ 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".
| _record_pointer_mismatches(platform, pointer_entries, legacy_entries) | ||
|
|
||
| resolved = list(pointer_entries) | ||
| legacy_by_channel = {entry["channel"]: entry for entry in legacy_entries} |
There was a problem hiding this comment.
Preserve the newest legacy release per channel
When a pointer/LKG is missing and legacy fallback has more than one live release for the same channel, _get_legacy_live_desktop_releases has already sorted the list newest-first, but this dict comprehension overwrites earlier entries with later ones. That makes the fallback choose the oldest live release for the channel, so stable/beta users can be served an outdated appcast/download exactly during the recovery path this change adds.
Useful? React with 👍 / 👎.
| gh release edit "$RELEASE_TAG" --repo "$REPO" \ | ||
| --title "Omi Desktop ${RELEASE_TAG#v}" \ | ||
| --notes-file /tmp/release-body-beta.md |
There was a problem hiding this comment.
Move legacy beta mutation after pointer promotion
If this gh release edit succeeds but the following “Advance explicit beta pointer” step fails, the GitHub release is already marked isLive: true/channel: beta. With the new same-channel legacy fallback, any request made while the beta pointer is missing can then expose the candidate without the atomic pointer promotion or later bridge/static updates having completed; promote the pointer first or roll back this metadata edit on failure.
Useful? React with 👍 / 👎.
|
@cursor review |
|
Skipping Bugbot: Bugbot is disabled for this repository. Visit the Bugbot dashboard to update your settings. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4430746876
ℹ️ 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".
| import sys | ||
| print(json.dumps({"platform": "macos", "channel": "stable", "release_id": sys.argv[1]})) | ||
| PY | ||
| curl -fsS \ |
There was a problem hiding this comment.
Avoid gating stable metadata on pointer promotion
In desktop_promote_prod.yml, this curl -fsS runs after the Firestore bridge has already been promoted to stable but before the GitHub release is marked channel: stable; I checked curl --help and --fail exits on HTTP errors, so a transient /v2/desktop/channels/promote 409/5xx leaves old Rust/Firestore clients on the new stable build while the Python appcast cannot use its legacy GitHub fallback for that same build. Put the GitHub stable metadata update before this pointer gate, or make the pointer advance retryable/non-blocking after legacy visibility is in place.
Useful? React with 👍 / 👎.
| mkdir -p "$STATE_DIR" | ||
| ( | ||
| cd "$WORKTREE/desktop/macos" | ||
| OMI_APP_NAME="$APP_NAME" ./run.sh --yolo |
There was a problem hiding this comment.
Record install state before blocking in run.sh
With the real desktop/macos/run.sh, --yolo sets OMI_SKIP_BACKEND=1 and then ends in the script's infinite wait loop, so omi-main install/update never return and this function never writes installed-sha; as a result omi-main status keeps reporting the bundle as not installed/out of date even after the app was built and launched. Write the state before invoking the long-running run.sh, or launch it in the background / add a build-and-open mode that exits.
Useful? React with 👍 / 👎.
Summary
stableandbetachannel pointers, with live cache, validated 30-day last-known-good recovery, exact-channel legacy fallback, reconciliation metrics, and a legacy kill switch.omi-mainnamed-bundle workflow for developers instead of exposing head-of-main to users.Rollout safety
DESKTOP_UPDATE_POINTERS_MODE=legacyis the emergency kill switch.Product invariants affected
INV-AUTH-1—codemagic.yamlandOmiApp.swiftare touched, but session invalidation and auth recovery behavior are unchanged. The signed-artifact Keychain canary remains mandatory before beta promotion.Validation
test_prompt_cache_integration.py(25/25); the initial CI run hit a pre-existing Linux timing failure that currentmainhas since removed.actionlintpassed for all changed desktop workflows.omi-mainend-to-end test passed.UpdateRelaunchWindowPolicyTestspassed 4/4./Applications/omi-update-control.app; logs confirmed the main window and Sparkle development policy initialized successfully.Closes #9079
Refs #9350