Repository navigation
Enable Voxtype GPU backend through sudo - #12901
chessing234 wants to merge 2 commits into
Conversation
|
Verified: No production defect found in the tested scope at
The new regression test passes on this head and fails against the baseline installer at the expected sudo assertion. Optional test improvement: In Review informationTest scope: Source inspection and isolated baseline/head tests with mocked dependencies. Actual privilege escalation, GPU switching and Vulkan dictation were not tested; recovery from a partially completed real switch is unverified. Community review: Independent automated community review, unaffiliated with the Omarchy team, intended to help prepare PRs for their review. Automated AI review: Astra initial inspection, independent Opus 5 and Astra technical reviews, followed by verification of the reported claims against targeted evidence. |
|
thanks — nothing further on my side |
|
Thanks, @chessing234. This fix works as described. I tested it at
I've linked #7099 as well as #11110, since both report this bug. There's one consequence for the maintainer to weigh. Because the GPU step can now succeed, it also succeeds on Intel Haswell GPUs. #11370 reports that #13508 is a competing fix for the same bug. It also runs the switch under Reviewed by Claude Opus 5.5. The second opinion, Codex Medium, did not run: today's review quota was spent. So nobody else has checked this yet. This is waiting on the maintainer to choose between this and #13508, and to decide whether #11481 lands first. |
|
#14552 replaced I tested 1c65793 on a disposable Omarchy VM with the real
Codex Medium reviewed the ported change as a second opinion. It found the merge faithful and the change proportionate. It raised one point I had already raised on the previous head, so its agreement there is not fully independent: once the switch can succeed, Intel Haswell machines get One thing for the maintainer: the GPU step now runs only on a first install. Anyone who installed dictation while this bug was live keeps the CPU build when they rerun the installer, because their config already exists. Fixing those machines would need a migration, which is beyond this pull request. This is waiting on the maintainer to decide the order with #11481. |
Confidence Score: 5/5
[Critical impact] The PR appears safe to merge; no new blocking issues were found. SummaryEnables Voxtype GPU setup through
Reviews (10) · Last reviewed commit: "Report Voxtype GPU setup failure accurat..." · Reviewed by Greptile |
|
Greptile left two review comments on 1c65793. Here is what I found for each. The success test didn't check that the switch worked ( Existing users miss the fix ( Codex Medium reviewed the new commit and both points as a second opinion. It agreed on both, and since my reasoning was already written down, that agreement is not fully independent. It found nothing new beyond the Haswell point that is already open. This is still waiting on the maintainer to decide the order with #11481, which adds the Haswell check and, like #13508, no longer merges cleanly. |
|
This stopped merging again because I tested 04a7836 on a disposable Omarchy VM with the real
Claude Opus 5.5 did the merge and the testing. Codex Medium reviewed the merge as a second opinion. It found no problems: both sides survive, the test changes keep every assertion, and the change is proportionate. It was agreeing with reasoning I had already written down, so that agreement isn't fully independent. The open points from before still stand. Once the switch can succeed, Intel Haswell machines get This is waiting on the maintainer to decide the order with #11481 and to choose between this and #13508. |
|
I reviewed 298af23, which adds the retry for existing configs and moves the sudo coverage into The fix works.
I've linked #7099, which reports the same Moving the switch out of the config check has side effects. The switch now runs on every run of the installer, and
Repairing installs that ran into this bug can't currently be told apart from overriding someone's own choice. #13508 switches only when the active binary is an AVX2 or AVX-512 build. That would leave ONNX users alone, but not someone who ran Claude Opus 5.5 did the review and testing. Codex Medium and muse-wonder (via pi, thinking high) gave second opinions. Both agreed the I didn't push anything, because what should happen on a rerun is a decision about behaviour. Earlier I raised that existing installs stay on CPU, and the retry answers that point. This is waiting on the maintainer to decide whether rerunning the installer should switch to GPU again, and in which order to land this and #11481. I compared this with #13508, which makes the same |
|
One update from voxtype that should make the ordering simpler. voxtype 1.3.2-rc1 (pre-release) makes On the rerun question omarchybot raised: I lean toward keeping the switch to first installs. A rerun that undoes |
|
I checked the 1.3.2-rc1 source and the current package. The release candidate checks AVX2 and GPU 16-bit storage before switching the Whisper backend to Vulkan, with a PCI fallback for a machine whose only graphics device is Haswell. Unknown GPU capabilities still allow the switch. This was checked by reading the source; I have not tested the new guards on Haswell or pre-AVX2 hardware. A fresh worker with refreshed package databases still receives With that packaged version and lavapipe on a disposable Omarchy worker, the base installer fails with GPT-6 in Codex (effort unspecified) checked the code and ran these worker checks. Opus 5.5 High and muse-wonder via pi, thinking high reviewed the source and results. Both agreed that the upstream guards leave the rerun decision unresolved; they received the earlier reasoning, so their agreement is not an independent confirmation. This remains with the maintainer: whether GPU selection should run only for a new config, and whether to wait for #11481 or a package carrying the upstream guards. No commits were pushed. |
|
@peteonrails agreed, moved the gpu switch back inside the first-install config check so reruns don't override |
|
The rerun regression is resolved: GPU setup is back inside the fresh-config check, so rerunning the installer preserves an explicit CPU backend choice and custom configuration. I pushed e5e8ff1 to resolve the conflict with current On a disposable Omarchy worker with real GPT-6 in Codex (effort unspecified) checked the code and ran the worker checks. Opus 5.5 High and muse-wonder via pi, thinking high reviewed e5e8ff1 and found no new code defect, including in the conflict resolution. Their agreement is not guaranteed to be independent of prior reasoning. Hardware ordering remains with the maintainer: packaged 1.3.1 lacks the AVX2/16-bit-storage guards discussed for 1.3.2-rc1, and its upstream Vulkan build targets Haswell. Those are source checks, not tests on older hardware; #11481 addresses the reported Haswell failure. The PR description also needs an author correction: it still promises GPU retries outside the config check and test changes that are absent from the current diff. This revision fixes fresh installs; existing installs retain their backend. This is waiting on the maintainer’s hardware-ordering decision and the description correction. |
e5e8ff1 to
1574042
Compare
Voxtype selects its backend system-wide. A new user configuration can reach GPU setup with Vulkan already selected, and a failed sudo call leaves that selection in place. Exercise the real installer with a failing sudo boundary to catch lost elevation or an abort, and check that a rerun leaves the existing backend alone. Co-Authored-By: GPT-6 High in Codex <noreply@openai.com> Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
|
I pushed On a disposable Omarchy worker, Voxtype 1.3.2-1 with software Vulkan switched to Vulkan with the fix. The base and reverted installers both failed with Greptile scored this head 5/5. GitHub's Please update the description to say GPU selection runs only when the installer creates |
Voxtype’s GPU setup rewrites /usr/bin/voxtype. Running it without sudo failed and silently left the CPU backend selected. Run that step through sudo and warn when it fails.
GPU setup now runs outside the config-copy guard as well: an earlier failed attempt may already have created config.toml, and rerunning the installer must repair the backend while preserving custom settings. The Vulkan-runtime and executable-backend checks still gate the GPU step, including packages that do not ship a usable Vulkan binary.
Closes #11110.
Validation:
These tests exercise the real installer with command-boundary stubs. They do not attest physical GPU acceleration.
Prepared with AI assistance (Cursor/Codex).
Latest Linux validation after merging quattro (6194f46): all seven Voxtype installer cases pass in the VM. CI run and downloadable logs. Review and i18n checks pass. The full VM check is not green: its only failing file is the unchanged background-intro-lifecycle-test.sh (
app retints also wait through the opening crossfade), also observed on the config-only PR. No background/animation code is changed here.Fixes #7099