Skip to content

Restore Voxtype if Cohere activation fails - #18126

Open
chessing234 wants to merge 4 commits into
omacom:voxtype-cohere-vulkanfrom
chessing234:codex/ryan-voxtype-rollback
Open

chessing234 wants to merge 4 commits into
omacom:voxtype-cohere-vulkanfrom
chessing234:codex/ryan-voxtype-rollback

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

What changes

Follow-up to #13098. If Cohere starts but Voxtype cannot restart with the new drop-in, restore both files and restart the previously active services. Report separately when restoring that setup also fails.

Verification

Added a case that fails the Voxtype restart after Cohere starts. It failed on #13098 and passed after the fix. The full Voxtype setup fixture then passed with a temporary home, a local flock substitute, and mocked systemd. A live Vulkan and systemd session was not available.

Screenshots

No visible change: this restores the existing backend configuration after an activation error.

@greptile-apps

greptile-apps Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Low impact] The PR appears safe to merge; no new actionable issue was found.

Summary

Restores both service files when Cohere activation fails and reports when recovery also fails.

  • Enabling Cohere restarts Voxtype and restores its previous setup if activation fails.

All three supplied, unnumbered previous findings are addressed by the current code.

Reviews (4) · Last reviewed commit: "Preserve the running Voxtype setup durin..." · Reviewed by Greptile

Comment thread bin/omarchy-voxtype-cohere Resolved
Comment thread test/shell.d/voxtype-setup-test.sh Resolved
Comment thread bin/omarchy-voxtype-cohere Resolved
@omarchybot

Copy link
Copy Markdown
Collaborator

I read the rollback change, the service and daemon it interacts with, the existing review comments, and the base branch’s contributor rules at c1794c24605ba23d0fe2a60a69f04447ffbffb18. Codex High classified this as a bug fix, but the second classifier, DeepSeek V4.1 Flash, returned no classification, so classification remains unsettled. No worker tests or full second review ran, and no code or labels changed. This is waiting on the maintainer to resolve classification before verification can continue.

@omarchybot omarchybot added the bug Something isn't working label Nov 22, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

The original activation-failure bug reproduces on base 7ee3e47eabba86c464f0c993227a7c31dae66257, passes at c1794c24605ba23d0fe2a60a69f04447ffbffb18, and fails again with the change reverted. A remaining case confirms Greptile's current finding at bin/omarchy-voxtype-cohere:95-100: when the previous Cohere drop-in exists but its backend was inactive, the restarted daemon can select the healthy remote backend, then rollback stops that backend while reporting successful restoration. Dictation is left pointed at a dead endpoint. The regression mock misses this because it never runs the restored daemon; it should check the resulting client mode and backend together.

I checked this on a disposable ISO worker, first with isolated command fixtures and the real daemon, then by replaying the recovery order with real user systemd and the real daemon; inference and the client binary were stubbed. The setup fixture passes all 14 checks. The full CLI suite fails on both base and head at vscode generated theme references current theme file, so this run stopped without a code push. The worker has been destroyed.

Codex (GPT-6; reasoning effort not exposed), Opus 5.5 High and muse-wonder via pi, thinking high reviewed this. Both second reviewers agree on the remaining defect; independence is not guaranteed. It needs recovery that keeps the restored client and backend consistent, plus a regression that observes that consistency. This is waiting on the maintainer because of the base-suite failure and the choice between restoring the exact prior inactive state and allowing the restored dependency to start. It also remains stacked on draft #13098.

@chessing234

Copy link
Copy Markdown
Contributor Author

@ryanrhughes could you take a look when you get a chance?

chessing234 and others added 2 commits December 2, 2026 09:04
On an early activation failure, restarting Voxtype interrupts a daemon the command never touched. On a first-time activation failure after Voxtype was restarted, adding a new drop-in can also replace the user’s service arguments. Recover only the services activation tried to restart and temporarily replace only the Omarchy daemon command in a previously installed Cohere drop-in.

Co-Authored-By: Codex (GPT-6 High) <noreply@openai.com>
Co-Authored-By: Opus 5.5 High <noreply@anthropic.com>
@omarchybot omarchybot added the verified Omarchy Triage has verified that this issue is ready for final review label Dec 2, 2026
@omarchybot

Copy link
Copy Markdown
Collaborator

I reproduced the original rollback failure on the base, confirmed recovery on a disposable Omarchy worker with real user systemd and stubbed Voxtype and inference, and reproduced the failure again with the fix reverted. 4840492c8 preserves a custom Voxtype service command during first-time rollback and leaves the running Voxtype process alone when Cohere fails before Voxtype is restarted. All 16 focused checks passed. The full suite had the same VS Code assertion and nine failing shell test files on the base and this revision.

Codex (GPT-6 High), Opus 5.5 High and muse-wonder via pi at high effort checked the change. The configured reviewers found no further actionable defects in the managed rollback. Independence is not guaranteed. I marked the rollback verified. This remains stacked on draft #13098, and no CI workflow ran on this revision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working verified Omarchy Triage has verified that this issue is ready for final review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants