feat(voice): playback survives thread switches with a now-playing indicator - #177
Merged
Conversation
pandec
changed the base branch from
t3code/persist-voice-summaries-across-devices
to
devAugust 27, 2026 17:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #176; retarget to dev after it merges.
Listening-version audio was owned by the message row: switching threads unmounted the player and killed the audio, and nothing showed which thread was playing.
Playback now lives in app-scoped players behind the shared ownership coordinator: a module HTMLAudioElement on web and a module expo-audio player on mobile. The coordinator gained an active-track snapshot and a separate progress store, so list rows re-render on track changes but never on progress ticks. The thread list shows a speaker icon on the thread that owns the loaded track: full while playing, dimmed while paused, click or tap toggles, with accessibility actions on mobile rows. Deleting the owning thread stops its audio; archiving pauses it. The web player replaces the native audio chrome with shared transport controls (drag-stable seek, 5-second keyboard jumps, spoken position text), and sidebar resume re-resolves a fresh signed URL so it works after long pauses.
Verified with an integrated web pass against a copy of real data: playback continued across thread switches, the sidebar toggle paused and resumed, and the row player rebound with the advanced position.
Implemented by Claude Fable 5 with gpt-5.6-sol and Opus 5 review panels, in Claude Code.