Skip to content

feat: Pause and Resume Focus sessions - #179

Merged
snehmatic merged 1 commit into
mainfrom
feat/focus-session-pause-resume
Sep 30, 2026
Merged

snehmatic merged 1 commit into
mainfrom
feat/focus-session-pause-resume

Conversation

@snehmatic

Copy link
Copy Markdown
Owner

Closes #178

This PR adds the ability to pause and resume focus sessions.

Changes

  • Updated the FocusSession model with PausedDuration and LastPausedAt to robustly track accumulated paused time without miscalculating ongoing durations.
  • Added mindloop focus pause and mindloop focus resume CLI commands.
  • Updated mindloop focus status to factor in paused duration and conditionally print ⏸ and Paused Focus: instead of Active Focus: when the session is parked.
  • Created HTTP handlers HandleFocusPause and HandleFocusResume with HTMX partial rendering compatibility.
  • Updated the frontend HTMX focus_active_timer.html block with Pause and Resume buttons based on the session's active status, and updated the JS interval timer to account for paused time.
  • Updated docs/CLI_USAGE.md and docs/FEATURES.md.

@snehmatic
snehmatic merged commit 709a8f8 into main Sep 30, 2026
6 checks passed
@snehmatic
snehmatic deleted the feat/focus-session-pause-resume branch September 30, 2026 08:13
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.

Pause and Resume Focus sessions

1 participant