Skip to content

refactor(input): consolidate reentrancy flags into EditSession (iOS & Android)#590

Merged
hryhoriiK97 merged 1 commit into
mainfrom
hryhoriiK97/consolidate-edit-session
Jul 25, 2026
Merged

refactor(input): consolidate reentrancy flags into EditSession (iOS & Android)#590
hryhoriiK97 merged 1 commit into
mainfrom
hryhoriiK97/consolidate-edit-session

Conversation

@hryhoriiK97

Copy link
Copy Markdown
Collaborator

What/Why?

Replace scattered boolean flags (isProcessingTextChange, isDuringTransaction, blockEmitting, isManagingAnchor, _isApplyingFormatting, _isTextChanging, etc.) with a single EditSession state machine per platform. Each flag becomes either a phase in the state machine or a computed query derived from the current phase.

Testing

PR Checklist

  • Code compiles and runs on iOS
  • Code compiles and runs on Android
  • Updated documentation/README if applicable
  • Ran example app to verify changes
  • E2E tests are passing
  • Required E2E tests have been added (if applicable)

… Android)

Replace scattered boolean flags (isProcessingTextChange, isDuringTransaction,
blockEmitting, isManagingAnchor, _isApplyingFormatting, _isTextChanging, etc.)
with a single EditSession state machine per platform. Each flag becomes either
a phase in the state machine or a computed query derived from the current phase.

Pure representation change — no behavioral changes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@hryhoriiK97
hryhoriiK97 merged commit a6f45ea into main Jul 25, 2026
8 checks passed
@hryhoriiK97
hryhoriiK97 deleted the hryhoriiK97/consolidate-edit-session branch July 25, 2026 22:11
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