Guard duration-based leak cleanup behind real leak evidence
The new fallback if leaked == 0 and self._ptt_start_time > 0 converts recording duration into a positive leaked count even when no characters were actually inserted (for example, when key repeat is disabled), and that count is then used by _paste_with_wtype/_paste_with_xdotool to send Shift+Left selections before paste. In non-IBus apps this can overwrite previously typed text that has nothing to do with PTT leakage, so the current logic can corrupt user input during normal dictation sessions.
Useful? React with 👍 / 👎.
Originally posted by @chatgpt-codex-connector[bot] in #8 (comment)
The new fallback
if leaked == 0 and self._ptt_start_time > 0converts recording duration into a positiveleakedcount even when no characters were actually inserted (for example, when key repeat is disabled), and that count is then used by_paste_with_wtype/_paste_with_xdotoolto sendShift+Leftselections before paste. In non-IBus apps this can overwrite previously typed text that has nothing to do with PTT leakage, so the current logic can corrupt user input during normal dictation sessions.Useful? React with 👍 / 👎.
Originally posted by @chatgpt-codex-connector[bot] in #8 (comment)