You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Whisper can silently lose a completed transcript when text insertion fails #643
When SuperCmd Whisper successfully transcribes speech but cannot insert it into the intended target, the resulting text can be silently lost.
This happens when there is no editable text target, focus has moved, or macOS injection/paste fails. The UI reports that it could not type into the active app, but does not preserve the final transcript anywhere useful.
Why this is a regression
Earlier Whisper code attempted a clipboard fallback when direct paste failed. The current whisper-type-text-live path returns fallbackClipboard: false on every result path and does not retain the transcript.
A completed transcription should never be discarded solely because text injection failed.
At minimum, when insertion fails:
Copy the final transcript to the system clipboard.
Show an actionable message: Couldn't insert text — copied to clipboard.
Avoid polluting SuperCmd Clipboard History with the temporary internal paste operation, but allow the deliberate failure fallback to be captured normally.
Nice follow-up
An optional bounded Whisper transcript history would make this much more robust, with timestamp, copy/re-paste actions, and clear retention/privacy controls. That should be a separate feature; the clipboard fallback is the immediate data-loss fix.
Acceptance criteria
Failure to type/paste a non-empty final transcript leaves that transcript on the system clipboard.
The user sees a clear recovery message rather than only a generic error.
Normal successful dictation restores the pre-existing clipboard as it does today.
The fallback path has a regression test.
Reproduction
Invoke hold-to-talk Whisper while no editable field is focused, or make the target unavailable before release.
Speak a unique sentence and release.
Observe that the transcription is not inserted and cannot be recovered from Clipboard History or Whisper.
Activity