Skip to content

Add pausable timers with auto-hold - #2

Merged
cpt-kernel-afk merged 1 commit into
mainfrom
feature/pausable-timers
Jun 1, 2026
Merged

Add pausable timers with auto-hold#2
cpt-kernel-afk merged 1 commit into
mainfrom
feature/pausable-timers

Conversation

@cpt-kernel-afk

Copy link
Copy Markdown
Owner

Multiple timer sessions can now stay open at once; exactly one is running and the rest are held (paused), so switching between projects no longer requires stopping and re-starting.

  • TimeEntry gains status (running/paused/completed), accumulated_minutes, and segment_started_at; pause()/resume()/stop() track worked time across segments (excluding paused gaps). resume() and starting a new timer auto-hold any other running timer (single-active invariant).
  • New timer_pause / timer_resume views; timer_start resumes an existing open session instead of duplicating it.
  • Dashboard shows Active and "On hold" separately, with Pause/Resume/Stop controls; the live counter ticks on the current segment.
  • Data migration backfills existing rows (open -> running, else completed).

Summary

  • Tested and works

Multiple timer sessions can now stay open at once; exactly one is running
and the rest are held (paused), so switching between projects no longer
requires stopping and re-starting.

- TimeEntry gains status (running/paused/completed), accumulated_minutes,
  and segment_started_at; pause()/resume()/stop() track worked time across
  segments (excluding paused gaps). resume() and starting a new timer
  auto-hold any other running timer (single-active invariant).
- New timer_pause / timer_resume views; timer_start resumes an existing
  open session instead of duplicating it.
- Dashboard shows Active and "On hold" separately, with Pause/Resume/Stop
  controls; the live counter ticks on the current segment.
- Data migration backfills existing rows (open -> running, else completed).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@cpt-kernel-afk
cpt-kernel-afk merged commit 3c34caf into main Jun 1, 2026
2 checks passed
@cpt-kernel-afk
cpt-kernel-afk deleted the feature/pausable-timers branch June 1, 2026 11:31
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