Skip to content

**<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Guard duration-based leak cleanup behind real leak evidence** #9

Description

@igor-im

P1 Badge 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)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions