Skip to content

Normalize composer annotations after text mutations - #242

Draft
Xare123 wants to merge 1 commit into
OpenBubbles:rustpushfrom
Xare123:agent/pr-extra-composer-annotations
Draft

Normalize composer annotations after text mutations#242
Xare123 wants to merge 1 commit into
OpenBubbles:rustpushfrom
Xare123:agent/pr-extra-composer-annotations

Conversation

@Xare123

@Xare123 Xare123 commented Aug 16, 2026

Copy link
Copy Markdown

Problem

Text edits could leave gaps, overlaps, or out-of-range composer annotations, leading to range exceptions and unstable formatting state.

Change

Normalize annotations into a clipped, complete, non-overlapping partition; merge adjacent plain ranges; and clear ranges for empty text.

Validation

Focused Flutter tests pass: 3/3 for transient gaps, overlap clipping, adjacent-range merging, and empty text.

Scope

Composer annotation logic only. Relay registration and content logging are excluded.

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