Skip to content

🚸 Pause TTS on 3 errors#657

Merged
williamchong merged 1 commit intolikecoin:developfrom
williamchong:feature/tts-ui
Feb 2, 2026
Merged

🚸 Pause TTS on 3 errors#657
williamchong merged 1 commit intolikecoin:developfrom
williamchong:feature/tts-ui

Conversation

@williamchong
Copy link
Member

No description provided.

This comment was marked as outdated.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment on lines +64 to +65
const consecutiveAudioErrors = ref(0)
const MAX_CONSECUTIVE_ERRORS = 3
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The consecutive error counter should be reset when users manually skip to a different segment (via skipForward, skipBackward, or skipToIndex). Currently, if there are 2 consecutive errors and the user skips forward, the next error would immediately pause playback, even though the user is trying a different segment. Consider resetting the counter when playCurrentElement() is called from user actions, or add a reset in the skip functions themselves.

Copilot uses AI. Check for mistakes.
@williamchong williamchong merged commit e4056e6 into likecoin:develop Feb 2, 2026
7 checks 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.

2 participants