Skip to content

Conversation

@forketyfork
Copy link
Owner

No description provided.

@forketyfork forketyfork requested a review from Copilot January 16, 2026 16:05
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes voice input and IME (Input Method Editor) composition handling by implementing proper text editing state management. The changes ensure that IME composition sequences are correctly tracked and cleared when switching sessions or receiving new input, preventing duplicate or stale characters from appearing.

Changes:

  • Added ImeComposition struct to track active composition state
  • Implemented composition clearing logic that sends delete commands for uncommitted text
  • Updated text input and editing handlers to manage composition state

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/main.zig Implements IME composition tracking, adds helper functions for codepoint counting and composition clearing, and updates event handlers to manage composition state
docs/architecture.md Documents the text input event handling behavior for SDL_EVENT_TEXT_INPUT and SDL_EVENT_TEXT_EDITING

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b6e61ad616

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@forketyfork forketyfork merged commit 31ec962 into main Jan 16, 2026
4 checks passed
@forketyfork forketyfork deleted the forketyfork/fix-voice-input branch January 16, 2026 20:43
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