Skip to content

Avoid busy polling after timed transcript ends - #275

Open
happykawayigt wants to merge 1 commit into
hyperaudio:mainfrom
happykawayigt:fix/poll-interval-after-transcript
Open

Avoid busy polling after timed transcript ends#275
happykawayigt wants to merge 1 commit into
hyperaudio:mainfrom
happykawayigt:fix/poll-interval-after-transcript

Conversation

@happykawayigt

Copy link
Copy Markdown

Summary

  • fall back to a 250 ms status poll after playback passes the final timed word
  • use the same bounded fallback when the next data-m value is missing, invalid, or already behind the playhead
  • add timer regression tests for the end-of-transcript and invalid-timestamp paths

Validation

  • npm run build
  • npm test -- --runInBand (76 tests passed)
  • git diff --check

Fixes #263

@happykawayigt
happykawayigt marked this pull request as ready for review July 30, 2026 17:58
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.

~1ms busy-poll loop after the playhead passes the last timed word (and on null data-m mid-transcript)

1 participant