Repository navigation
fix(desktop): v0.12.110 launch crash — resolve fonts via Bundle.resourceBundle - #10350
Merged
Merged
Conversation
…shed at launch on user installs OmiFontRegistration used SwiftPM's generated Bundle.module accessor, which only checks the app root and an absolute .build path baked in from the build machine. Both are absent on end-user installs, so every real user's v0.12.110 launch hit fatalError in resource_bundle_accessor.swift while dev machines, CI, and the signed-artifact launch canary all passed via the checked-out repo fallback. Switch to Bundle.resourceBundle (resolves Contents/Resources) and add a source tripwire forbidding generated-accessor usage in app sources. Reproduced: exact v0.12.110 signed binary + real user profile crashed with SIGTRAP/exit 133 at resource_bundle_accessor.swift:12; same launch with the fixed accessor path verified below. Failure-Class: FC-resource-bundle-accessor | new Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Jul 22, 2026
Merged
kodjima33
added a commit
that referenced
this pull request
Jul 22, 2026
…sh class (#10355) Registry-only correction: FC-dev-fallback-masks-install-defect cited #10342 (UI polish) instead of the actual crash-fix PR #10350. Separate registry-lifecycle PR per AGENTS.md. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
pull Bot
pushed a commit
to codingwatching/omi
that referenced
this pull request
Jul 23, 2026
… PR to BasedHardware#10350 The class was registered in the crash-fix PR before its number existed and cited the unrelated UI-polish PR (BasedHardware#10342); the Bundle.module install-crash fix is BasedHardware#10350. Co-Authored-By: Claude Fable 5 <[email protected]>
kodjima33
added a commit
that referenced
this pull request
Jul 23, 2026
…es, docker-daemon health, resilient venv (#10363) ## Follow-up hardening for the desktop qualification lanes (#10354) #10354 landed the Codemagic-primary + self-hosted-fallback qualification restructure and registered failure class `FC-single-machine-release-gate`. This PR repairs three gaps found by cross-review and by the first live Codemagic-lane run — the merged version does not yet deliver the "any independent machine can qualify" guarantee the class promises. Instance fixes for the same boundary. ### 1. Independent per-machine fallback lanes (cross-review finding) The merged version had a single `qualify` self-hosted job routed to any matching runner, so a sick-but-online David machine could absorb the job and Nik's mini would never try. Replaced with: - `plan-fallbacks` — reads runner online-status via the runners API (`m1_online`/`m4_online`); a failed query fails open. Gates each machine lane so an **offline** runner is skipped instead of queue-stalling the per-tag concurrency group (offline self-hosted jobs queue up to 24h). - `qualify-m1-studio` (label `omi-qual-m1-studio`) then `qualify-m4-mini` (label `omi-qual-m4-mini`) — one lane per physical machine (labels applied to both registered runners via the API). Serialized so the mini lane runs only when the M1 lane did not publish evidence; a sick-but-online machine can no longer absorb the other's attempt. Byte-identical steps after `steps:` (enforced by `test_desktop_release_flow_contract.py`). - `verdict` passes iff `CM_QUALIFIED || M1_QUALIFIED || M4_QUALIFIED`. ### 2. Docker-daemon health in Typesense selection (cross-review finding) `typesense_runtime()` auto-picked docker on `which docker` alone, so a docker CLI with a **dead daemon** sank the lane even with a native binary present. Now probes `docker info` (`_docker_daemon_healthy`, 15s timeout); a dead daemon falls through to native `typesense-server`, and `prerequisite_report` distinguishes "docker daemon" (present-but-dead) from "docker missing". ### 3. Resilient backend venv provisioning (live CM-lane failure) The first live Codemagic-lane test on **v0.12.111** (build `6a61554646f44fbd4070c8cf`) failed at the qualify step: ``` error: No download found for request: cpython-3.11.15-macos-aarch64-none make: *** [setup-backend] Error 2 ``` `make setup-backend` runs `uv python install 3.11.15` (exact patch), but a freshly `brew install`ed uv on the ephemeral CM Mac has a python-build-standalone index that lacks that exact patch — so the venv-provisioning step added in #10354 hard-broke the lane it was meant to enable. Now: try `make setup-backend` (exact-patch CI parity), and on failure fall back to a venv on the pinned **minor** version + `uv pip sync` of the exact platform lock. The lockfile still pins every dependency exactly; only the interpreter patch floats to what uv can fetch. ## Verification Local (all green): - Exercised the venv fallback against the real backend: `uv venv --python 3.11 + uv pip sync pylock.macos.toml` → `python -c "import uvicorn, fastapi"` OK. - `bash -n desktop/macos/scripts/qualify-desktop-beta.sh` → OK - `python3 .github/scripts/test_desktop_release_flow_contract.py` → 19 OK (incl. new multi-lane independence + byte-identical-lanes assertions) - `python3 -m pytest scripts/dev-harness/tests/` → 50 passed (incl. broken-daemon fallback + dead-daemon preflight) - `python3 .github/scripts/check-release-process-guards.py` → passed (post-rebase over #10358's codemagic.yaml change) - `bash desktop/macos/tests/test-qualify-desktop-beta-contract.sh` → passed - `actionlint .github/workflows/desktop_qualify_beta.yml` → exit 0 (custom runner labels registered in `.github/actionlint.yaml`; only the pre-existing SC2086 info remains) - `python3 .github/scripts/check_agents_md_lean.py` → within budget Live (release-infra exercised for real): - Both machine labels applied to the two registered runners; `mac-mini-m4-qualification` already executed a real qualification job end-to-end in #10354's verification. - After merge I will re-run the Codemagic lane on the newest valid candidate to confirm the venv fallback carries it through T2 on the ephemeral Mac. **UNVERIFIED until that run passes** — the fix is proven at the unit/component level (fallback venv imports backend deps) but not yet through a full green CM T2. - Separately, the self-hosted lane is qualifying **v0.12.111** (the real beta-unblock candidate, carrying the #10350 crash fix) on David's M1 via the pre-merge tag script; that run is the operator's actual beta unblock and is independent of this PR. Failure-Class: FC-single-machine-release-gate <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/10363?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…rceBundle (BasedHardware#10350) ## Summary v0.12.110 crashes at launch on every user install: `OmiFontRegistration` (new in the Second Brain redesign) resolves fonts via SwiftPM's generated `Bundle.module`, which only checks the app root and a baked-in absolute `.build` path from the build machine. Dev machines, CI, and the signed-artifact launch canary all pass via the checked-out-repo fallback; user installs fatalError in `resource_bundle_accessor.swift:12`. Fix: use `Bundle.resourceBundle` (resolves `Contents/Resources/`). Adds a source tripwire test forbidding generated-accessor usage in app sources. ## Verification - Reproduced with the exact v0.12.110 signed binary + real user profile: SIGTRAP exit 133 at `resource_bundle_accessor.swift:12`. - Fixed build: rebuilt named bundle, renamed `Desktop/.build` away (removing the dev fallback), relaunched — app runs, zero fatal errors. - `ResourceBundleAccessorTests` (2 tests) pass. Failure-Class: new 🤖 Generated with [Claude Code](https://claude.com/claude-code)
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
… PR to BasedHardware#10350 The class was registered in the crash-fix PR before its number existed and cited the unrelated UI-polish PR (BasedHardware#10342); the Bundle.module install-crash fix is BasedHardware#10350. Co-Authored-By: Claude Fable 5 <[email protected]>
undivisible
pushed a commit
to undivisible/omi
that referenced
this pull request
Sep 29, 2026
…es, docker-daemon health, resilient venv (BasedHardware#10363) ## Follow-up hardening for the desktop qualification lanes (BasedHardware#10354) BasedHardware#10354 landed the Codemagic-primary + self-hosted-fallback qualification restructure and registered failure class `FC-single-machine-release-gate`. This PR repairs three gaps found by cross-review and by the first live Codemagic-lane run — the merged version does not yet deliver the "any independent machine can qualify" guarantee the class promises. Instance fixes for the same boundary. ### 1. Independent per-machine fallback lanes (cross-review finding) The merged version had a single `qualify` self-hosted job routed to any matching runner, so a sick-but-online David machine could absorb the job and Nik's mini would never try. Replaced with: - `plan-fallbacks` — reads runner online-status via the runners API (`m1_online`/`m4_online`); a failed query fails open. Gates each machine lane so an **offline** runner is skipped instead of queue-stalling the per-tag concurrency group (offline self-hosted jobs queue up to 24h). - `qualify-m1-studio` (label `omi-qual-m1-studio`) then `qualify-m4-mini` (label `omi-qual-m4-mini`) — one lane per physical machine (labels applied to both registered runners via the API). Serialized so the mini lane runs only when the M1 lane did not publish evidence; a sick-but-online machine can no longer absorb the other's attempt. Byte-identical steps after `steps:` (enforced by `test_desktop_release_flow_contract.py`). - `verdict` passes iff `CM_QUALIFIED || M1_QUALIFIED || M4_QUALIFIED`. ### 2. Docker-daemon health in Typesense selection (cross-review finding) `typesense_runtime()` auto-picked docker on `which docker` alone, so a docker CLI with a **dead daemon** sank the lane even with a native binary present. Now probes `docker info` (`_docker_daemon_healthy`, 15s timeout); a dead daemon falls through to native `typesense-server`, and `prerequisite_report` distinguishes "docker daemon" (present-but-dead) from "docker missing". ### 3. Resilient backend venv provisioning (live CM-lane failure) The first live Codemagic-lane test on **v0.12.111** (build `6a61554646f44fbd4070c8cf`) failed at the qualify step: ``` error: No download found for request: cpython-3.11.15-macos-aarch64-none make: *** [setup-backend] Error 2 ``` `make setup-backend` runs `uv python install 3.11.15` (exact patch), but a freshly `brew install`ed uv on the ephemeral CM Mac has a python-build-standalone index that lacks that exact patch — so the venv-provisioning step added in BasedHardware#10354 hard-broke the lane it was meant to enable. Now: try `make setup-backend` (exact-patch CI parity), and on failure fall back to a venv on the pinned **minor** version + `uv pip sync` of the exact platform lock. The lockfile still pins every dependency exactly; only the interpreter patch floats to what uv can fetch. ## Verification Local (all green): - Exercised the venv fallback against the real backend: `uv venv --python 3.11 + uv pip sync pylock.macos.toml` → `python -c "import uvicorn, fastapi"` OK. - `bash -n desktop/macos/scripts/qualify-desktop-beta.sh` → OK - `python3 .github/scripts/test_desktop_release_flow_contract.py` → 19 OK (incl. new multi-lane independence + byte-identical-lanes assertions) - `python3 -m pytest scripts/dev-harness/tests/` → 50 passed (incl. broken-daemon fallback + dead-daemon preflight) - `python3 .github/scripts/check-release-process-guards.py` → passed (post-rebase over BasedHardware#10358's codemagic.yaml change) - `bash desktop/macos/tests/test-qualify-desktop-beta-contract.sh` → passed - `actionlint .github/workflows/desktop_qualify_beta.yml` → exit 0 (custom runner labels registered in `.github/actionlint.yaml`; only the pre-existing SC2086 info remains) - `python3 .github/scripts/check_agents_md_lean.py` → within budget Live (release-infra exercised for real): - Both machine labels applied to the two registered runners; `mac-mini-m4-qualification` already executed a real qualification job end-to-end in BasedHardware#10354's verification. - After merge I will re-run the Codemagic lane on the newest valid candidate to confirm the venv fallback carries it through T2 on the ephemeral Mac. **UNVERIFIED until that run passes** — the fix is proven at the unit/component level (fallback venv imports backend deps) but not yet through a full green CM T2. - Separately, the self-hosted lane is qualifying **v0.12.111** (the real beta-unblock candidate, carrying the BasedHardware#10350 crash fix) on David's M1 via the pre-merge tag script; that run is the operator's actual beta unblock and is independent of this PR. Failure-Class: FC-single-machine-release-gate <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/10363?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v0.12.110 crashes at launch on every user install:
OmiFontRegistration(new in the Second Brain redesign) resolves fonts via SwiftPM's generatedBundle.module, which only checks the app root and a baked-in absolute.buildpath from the build machine. Dev machines, CI, and the signed-artifact launch canary all pass via the checked-out-repo fallback; user installs fatalError inresource_bundle_accessor.swift:12.Fix: use
Bundle.resourceBundle(resolvesContents/Resources/). Adds a source tripwire test forbidding generated-accessor usage in app sources.Verification
resource_bundle_accessor.swift:12.Desktop/.buildaway (removing the dev fallback), relaunched — app runs, zero fatal errors.ResourceBundleAccessorTests(2 tests) pass.Failure-Class: new
🤖 Generated with Claude Code