openreader/src/contexts
Richard R 222d221e81 fix(tts): prevent stale playback by tracking playback run state in TTS context
Introduce `playbackRunIdRef` and `invalidatePlaybackRun` to ensure that playback
state is correctly reset on abort and content changes. Update abort and navigation
handlers to call `invalidatePlaybackRun`, preventing duplicate or stale playback
runs, especially in scenarios with rapid restarts or browser-specific audio event
quirks. This addresses issues where playback could become stuck or behave
unexpectedly due to outdated in-flight guards.
2026-05-04 12:26:29 -06:00
..
AuthRateLimitContext.tsx refactor: Standardize database timestamp fields to bigint epoch milliseconds and update schema migrations. 2026-02-17 21:00:36 -07:00
ConfigContext.tsx refactor(tts,audiobook,tests): centralize TTS catalog, harden epub & UI flows 2026-04-06 10:28:00 -06:00
DocumentContext.tsx feat: Refactor server-side document, audiobook, and authentication logic, introduce new client-side APIs and caching, and update related tests. 2026-02-17 19:30:12 -07:00
EPUBContext.tsx refactor(tts,config,audiobook): centralize TTS provider catalog and extract audiobook pipeline 2026-04-04 17:53:57 -06:00
HTMLContext.tsx feat: Refactor server-side document, audiobook, and authentication logic, introduce new client-side APIs and caching, and update related tests. 2026-02-17 19:30:12 -07:00
PDFContext.tsx refactor(tts,config,audiobook): centralize TTS provider catalog and extract audiobook pipeline 2026-04-04 17:53:57 -06:00
ThemeContext.tsx feat(theme): add persistent custom theme with live color editing 2026-04-07 01:09:08 -06:00
TTSContext.tsx fix(tts): prevent stale playback by tracking playback run state in TTS context 2026-05-04 12:26:29 -06:00