Skip to content

Make desktop updates explicit, qualified, and recoverable - #9356

Merged
Git-on-my-level merged 6 commits into
mainfrom
codex/desktop-update-control-plane
Jul 9, 2026
Merged

Git-on-my-level merged 6 commits into
mainfrom
codex/desktop-update-control-plane

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 9, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Fixes the immediate macOS 0.12.x update failures spiked; build 12000 reports blank Update Check Failed errors #9079 failure mode by paginating the legacy GitHub release lookup and preventing stable-to-beta channel crossover.
  • Adds immutable desktop release manifests plus explicit stable and beta channel pointers, with live cache, validated 30-day last-known-good recovery, exact-channel legacy fallback, reconciliation metrics, and a legacy kill switch.
  • Replaces automatic beta publication with candidate builds that must pass exact-tag T2 qualification before an atomic beta promotion. Stable promotion advances the stable pointer only after the existing production checks complete.
  • Adds the opt-in omi-main named-bundle workflow for developers instead of exposing head-of-main to users.
  • Reports install success only after the relaunched app verifies the target build, with correlated start/success/failure telemetry.

Rollout safety

  • No backend deployment, beta promotion, stable promotion, or production pointer change was performed.
  • The new resolver is primary, then validated LKG, then the old exact-channel path. Resolution source, shared fallback telemetry, pointer/LKG age, feed validity, and sampled mismatches are observable.
  • DESKTOP_UPDATE_POINTERS_MODE=legacy is the emergency kill switch.
  • Static GCS/CDN ownership and eventual dual-path removal remain tracked in Desktop updates: explicit channel pointers, qualified beta releases, and observable legacy fallback #9350 after reliability data supports the cutover.

Product invariants affected

  • INV-AUTH-1 — codemagic.yaml and OmiApp.swift are touched, but session invalidation and auth recovery behavior are unchanged. The signed-artifact Keychain canary remains mandatory before beta promotion.

Validation

  • Repository pre-push suite passed: architecture/policy gates, backend async/import/isolation scanners, runtime-env validation, pyright, workflow contracts, selected backend tests, generated OpenAPI checks, workflow checks, desktop Swift compile, and optional formatters.
  • 133 focused backend tests passed, including route-policy inventory and update fallback telemetry tests.
  • The exact CI timing guard passed locally for test_prompt_cache_integration.py (25/25); the initial CI run hit a pre-existing Linux timing failure that current main has since removed.
  • Route-policy missing-baseline enforcement reports zero new missing routes.
  • Desktop core self-check and strict e2e coverage pass with all five changed Swift files covered.
  • actionlint passed for all changed desktop workflows.
  • Release metadata self-test and the isolated omi-main end-to-end test passed.
  • UpdateRelaunchWindowPolicyTests passed 4/4.
  • Installed and launched /Applications/omi-update-control.app; logs confirmed the main window and Sparkle development policy initialized successfully.

Closes #9079
Refs #9350

@mintlify

mintlify Bot commented Jul 9, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
omi 🟢 Ready View Preview Jul 9, 2026, 8:53 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

@codex review

@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: 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".

Comment thread backend/routers/updates.py Outdated
_record_pointer_mismatches(platform, pointer_entries, legacy_entries)

resolved = list(pointer_entries)
legacy_by_channel = {entry["channel"]: entry for entry in legacy_entries}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Comment on lines +108 to +110
gh release edit "$RELEASE_TAG" --repo "$REPO" \
--title "Omi Desktop ${RELEASE_TAG#v}" \
--notes-file /tmp/release-body-beta.md

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

@cursor review

@cursor

cursor Bot commented Jul 9, 2026

Copy link
Copy Markdown

Skipping Bugbot: Bugbot is disabled for this repository. Visit the Bugbot dashboard to update your settings.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

@codex review

@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: 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 \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P3 Badge 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 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit 0c7b085 into main Jul 9, 2026
22 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/desktop-update-control-plane branch July 9, 2026 23:59

This branch was successfully deployed

1 active deployment
staging - docs — 44307468 Deployed Jul 9, 2026 by mintlify[bot]
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.

macOS 0.12.x update failures spiked; build 12000 reports blank Update Check Failed errors

1 participant