Skip to content

Prevent duplicate text injection on key release - #24

Open
justinhnaylor wants to merge 1 commit into
digimata:masterfrom
justinhnaylor:codex/prevent-duplicate-text-injection
Open

Prevent duplicate text injection on key release#24
justinhnaylor wants to merge 1 commit into
digimata:masterfrom
justinhnaylor:codex/prevent-duplicate-text-injection

Conversation

@justinhnaylor

Copy link
Copy Markdown

Summary

  • Attach transcript Unicode only to the synthesized key-down event
  • Keep the matching key-up event without a text payload

Why

The injector currently attaches the same Unicode chunk to both key-down and key-up events. Some text inputs can interpret both payloads, causing intermittent duplicate insertion even though Parrot produced a single transcription.

Testing

  • swift build -c release

FernandoGomes83 added a commit to FernandoGomes83/parrot that referenced this pull request Aug 26, 2026
…llback path

Post synthetic keystrokes to cgAnnotatedSessionEventTap so our own
hotkey tap doesn't swallow them, and stop setting the unicode string
on the key-up event, which duplicated the text in some apps.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJSwEJLoPGF23gRToanmHJ
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.

2 participants