Skip to content

feat: add watch command with configurable session reminders - #5

Merged
e6a5 merged 3 commits into
mainfrom
feature/watch
Jul 10, 2025
Merged

feat: add watch command with configurable session reminders#5
e6a5 merged 3 commits into
mainfrom
feature/watch

Conversation

@e6a5

@e6a5 e6a5 commented Jul 10, 2025

Copy link
Copy Markdown
Owner

Adds flow watch - a long-running process that provides gentle reminders to help users remember to start, pause, resume, or end flow sessions.

Features

  • Configurable reminders via ~/.config/flow/config.yml
  • Smart state detection - tracks session transitions automatically
  • Non-intrusive timestamps - designed for a dedicated terminal tab

Reminder Types

  • Start sessions after idle time (default: 15m)
  • Take breaks during long sessions (default: 2h)
  • Resume paused sessions (default: 5m)

Usage

# Terminal 1: Start watching
flow watch

# Terminal 2: Work normally  
flow start "deep work"
flow end
# → Watch automatically reminds you to start again after 15 minutes

Configuration

watch:
  interval: "5m"              # Check frequency
  remind_after_idle: "15m"    # Idle reminder timing
  remind_after_pause: "5m"    # Pause reminder timing  
  remind_after_active: "2h"   # Break suggestion timing

Solves: Users forgetting to manage flow sessions
Breaking Changes: None - fully backward compatible

e6a5 added 3 commits July 10, 2025 21:01
- Add proper error handling for MarkHidden() in watch command
- Improve error handling in config tests with clearer expectations
- Add error checking for io.Copy() in test helper function
- Resolves linter warnings about unchecked errors
@e6a5
e6a5 merged commit 0a70140 into main Jul 10, 2025
1 check 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.

1 participant