Repository navigation
Fix Hex dictation staying on after push-to-talk release - #17827
Merged
Merged
Conversation
The adapter read `.desktop.activity.state` from plain `hex status`, which never matched, so stop assumed Hex was idle and never sent the stop. Always send `hex dictation stop --print` and treat no speech, Hex not running, or nothing recording as a quiet success; toggle reads `.capture.recording` from `hex status --json`. Hex only reports a recording ~150ms after it starts, so gating stop on status would still miss a quick tap. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
[Medium impact] The PR appears safe to merge; both previous findings are addressed, and no new actionable issues were found. SummaryFixes Hex push-to-talk stopping and reuses universal paste for transcripts.
Reviews (4) · Last reviewed commit: "Report Hex stop failures unless Hex conf..." · Reviewed by Greptile |
Typing a long transcript through wtype is slow to land. Shift+Insert pastes the clipboard in terminals and other apps alike, the same way clipboard history and the emoji picker insert text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Shift+Insert pastes the primary selection in kitty. Superwhisper sends Ctrl+Shift+V to terminals and Ctrl+V elsewhere, so expose SUPER + V's universal paste as o.universal_paste and give omarchy-clipboard-paste-text a --universal mode that dispatches it. Hex now uses that, sharing the terminal tag check with the key binding. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A failed stop was treated as success whenever `hex status` also failed, since an unanswered status read as idle. Only swallow the error after a status reply shows nothing recording. When mktemp fails, still send the stop and let Hex's message through instead of failing the redirect. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cursor Bot
pushed a commit
to mark-groves/omarchy
that referenced
this pull request
Nov 6, 2026
* Fix Hex dictation staying on after push-to-talk release The adapter read `.desktop.activity.state` from plain `hex status`, which never matched, so stop assumed Hex was idle and never sent the stop. Always send `hex dictation stop --print` and treat no speech, Hex not running, or nothing recording as a quiet success; toggle reads `.capture.recording` from `hex status --json`. Hex only reports a recording ~150ms after it starts, so gating stop on status would still miss a quick tap. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Paste Hex transcripts with Shift+Insert instead of typing them Typing a long transcript through wtype is slow to land. Shift+Insert pastes the clipboard in terminals and other apps alike, the same way clipboard history and the emoji picker insert text. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Paste Hex transcripts the way SUPER + V does Shift+Insert pastes the primary selection in kitty. Superwhisper sends Ctrl+Shift+V to terminals and Ctrl+V elsewhere, so expose SUPER + V's universal paste as o.universal_paste and give omarchy-clipboard-paste-text a --universal mode that dispatches it. Hex now uses that, sharing the terminal tag check with the key binding. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Report Hex stop failures unless Hex confirms it is idle A failed stop was treated as success whenever `hex status` also failed, since an unanswered status read as idle. Only swallow the error after a status reply shows nothing recording. When mktemp fails, still send the stop and let Hex's message through instead of failing the redirect. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
omarchybot
added a commit
to kvnloo/omarchy
that referenced
this pull request
Nov 17, 2026
quattro's omacom#17827 added --universal to omarchy-clipboard-paste-text. Keep it beside the optional window-address argument; the refocus step runs before whichever paste mode was chosen. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 17, 2026
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.
What changes
With Hex as the dictation backend, releasing Right Alt left the Hex recording overlay up for good; Hex never got the stop.
omarchy-dictation-hex stoponly sent the stop if Hex looked like it was dictating, and it checked by reading.desktop.activity.statefromhex status. Plainhex statusprints text, and the JSON fromhex status --jsonhas no such field (a recording shows up as.capture.recording == "dictation"). The check never matched, so stop always assumed Hex was idle and returned without doing anything. Alt + Space toggle had the same problem and always tried to start.Fixing the field alone isn't enough. Hex only reports a recording ~130-150ms after
hex dictation startreturns, so a quick tap of Right Alt would still slip through a status check. Hex does run commands in order, though, and a stop sent right after a start always landed when I tried it. So now:stopalways sendshex dictation stop --print. No speech (exit 4), Hex not running (exit 3), and nothing recording (exit 1, confirmed withhex status --jsonafterwards) all count as a quiet success.togglereads.capture.recordingfromhex status --json.wtype, so long dictation lands at once. It uses SUPER + V's universal paste (Ctrl+Shift+V in terminals, Ctrl+V elsewhere), the same split Superwhisper uses.clipboard.luaexposes that action aso.universal_paste, andomarchy-clipboard-paste-text --universaldispatches it, so the terminal check lives in one place. Shift+Insert was the first try, but kitty maps it to the primary selection.The test's fake
hexanswered with the same made-updesktop.activity.stateshape, which is why it passed. It now matches the replies from real Hex 3.3.0.Verification
bash test/shell.d/dictation-test.sh,clipboard-test.sh,hyprland-default-config-test.shandhyprland-binding-conflicts-test.shpass. The new quick-tap check in the dictation test (stop while status still says idle) fails against the old adapter.hex status --jsonshowedcapture.stateback atidleeach time.capturefields andnot-recordingcode as the dev build I tested on.Screenshots
No visible change: Hex's own overlay now closes on release like it should; nothing in Omarchy's UI changes.