Skip to content

SelectionSpeechRouting: return to passthrough when cancelling a deciding read - #620

Open
toufiqfarhan0 wants to merge 1 commit into
AssemblyAI:mainfrom
toufiqfarhan0:fix/selection-speech-deciding
Open

toufiqfarhan0 wants to merge 1 commit into
AssemblyAI:mainfrom
toufiqfarhan0:fix/selection-speech-deciding

Conversation

@toufiqfarhan0

Copy link
Copy Markdown
Contributor

Fixes #619

Summary

  • Return mode directly to .passthrough in SelectionSpeechRouting.submit(_:) and keyLatched() (for short holds on recording intents) whenever cancelPendingRead() cancels the active read.
  • Remove the now-unreachable ended: Bool flag on Mode.deciding and its dead recovery branches.
  • Add regression tests in SelectionSpeechRoutingLinkTests verifying .cancel, .release, and short-hold latches clear isHandlingPress and isBusy, deliver .syncGateAfterSession, and allow toggleDictation links right away.

This branch has not been deployed

No deployments
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.

SelectionSpeechRouting stays stuck in .deciding after cancelling a read, blocking dictation links and stealing Escape

1 participant