Skip to content

Conversation

@ooii
Copy link

@ooii ooii commented Jan 18, 2026

Summary

  • Add configurable time window (5-60s) for sleep timer auto-extend on play
  • Add option to reset sleep timer to original duration when resuming playback

Test plan

  • Set sleep timer, let it expire, press play within window → timer restarts
  • Enable reset on play, pause mid-timer, resume → timer resets to original duration

🤖 Generated with Claude Code

ooii and others added 2 commits January 18, 2026 11:05
Previously, the "play extends sleep timer" feature used a hardcoded
10-second window. This change adds a user-configurable setting to
control how long after the sleep timer expires the user can press
play to automatically restart it.

Changes:
- Add extendSleepTimerOnPlayWindow preference key (default: 10 seconds)
- Update AudioPlayer to use the configurable value instead of hardcoded 10
- Add UI controls in SleepTimerEditor: toggle for the feature and
  stepper for the time window (5-60 seconds in 5-second increments)
- Add localized strings for all supported languages (EN, FR, DE, RU,
  SV, UK, ZH-Hans)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add a new setting that resets the sleep timer to its original duration
when the user pauses and resumes playback before the timer expires.
This is useful for users who want the timer to restart every time they
resume listening.

Example: If you set a 10-minute timer and pause after 5 minutes, when
you resume the timer will restart at 10 minutes instead of continuing
from 5 minutes remaining.

Changes:
- Add reset computed property to SleepTimerConfiguration that creates
  a new timer with the same original duration starting from now
- Add resetSleepTimerOnPlay preference key (default: false)
- Update AudioPlayer.play() to reset active timer when preference is
  enabled
- Add toggle in SleepTimerEditor with descriptive footer
- Add localized strings for all supported languages

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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