Skip to content

Use admission time for streaming accent decay#79

Merged
pat-oai merged 2 commits into
mainfrom
ph/streaming-accent-admission-time
Jun 1, 2026
Merged

Use admission time for streaming accent decay#79
pat-oai merged 2 commits into
mainfrom
ph/streaming-accent-admission-time

Conversation

@pat-oai

@pat-oai pat-oai commented Jun 1, 2026

Copy link
Copy Markdown

Summary

  • Uses both admission time and scheduled reveal time when deciding streaming accent strength.
  • Caps each accent overlay duration at the shared decay window so delayed text does not outlive the opening accent treatment.
  • Keeps existing animation count bounded by skipping excess accent overlays instead of evicting active ones.

Why

Streaming text can reveal adjacent markdown blocks at slightly different times. If each overlay only uses its local reveal timing, already-revealed text can lose the accent while the next block is still starting, making the transition look inconsistent. This keeps the treatment tied to the shared opening window while preserving per-segment reveal timing.

Testing

  • JAVA_HOME=/opt/homebrew/Cellar/openjdk@21/21.0.10/libexec/openjdk.jdk/Contents/Home ANDROID_HOME=/Users/pat/Library/Android/sdk ./gradlew :richtext-ui:check

@pat-oai pat-oai marked this pull request as ready for review June 1, 2026 23:12
@pat-oai pat-oai merged commit 31698d6 into main Jun 1, 2026
1 check passed
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