Skip to content

Reject stale-selection suggestion edits - #65

Merged
RioPlay merged 1 commit into
mainfrom
codex/android-suggestion-selection
Sep 27, 2026
Merged

RioPlay merged 1 commit into
mainfrom
codex/android-suggestion-selection

Conversation

@RioPlay

@RioPlay RioPlay commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Fixes the exact-main Android release-gate failure after PR #64. Suggestion completion now confirms the live InputConnection has no selected text immediately before any destructive edit, closing the race where onUpdateSelection trails a host-side selection. The check fails closed on unreadable editor state and does not copy or log selection contents. Regression coverage deterministically forces a stale collapsed callback state over a live expanded selection. Validation: Android tools 26/26; JVM tests pass; lint passes; exact regression passes; SuggestionStripTest 18/18 passes. A complete 238-test local run passed the fixed regression and had one separate default-IME readiness fixture failure that had passed in the preceding focused class run. Exact-main CI remains the release gate.

@RioPlay
RioPlay merged commit eb4cfd2 into main Sep 27, 2026
1 check passed
@RioPlay
RioPlay deleted the codex/android-suggestion-selection branch September 27, 2026 19:25
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.

1 participant