Commit Graph

5 Commits

Author SHA1 Message Date
5db92d5127 fix(watcher): fix TickCount wrap and resume retry on API failure
- Use 32-bit Environment.TickCount with unchecked uint arithmetic so
  GetIdleTime stays correct after the ~49.7 day uint wrap boundary
- Only clear _pausedTaskId after successful resume, not before the API call
- Add retry path: if resume failed, retry on next poll cycle while user
  is still active

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 00:18:22 -05:00
71d33e355c feat(watcher): add idle detection with auto-pause/resume
When user is idle beyond IdleTimeoutMs, automatically pauses the active
task via the API. When user returns, resumes the task if it's still paused.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 00:14:36 -05:00
c71795c13f feat(watcher): add configurable IdleTimeoutMs setting (default 5 min)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 00:12:29 -05:00
ea688c0ab0 feat(watcher): add GetLastInputInfo P/Invoke for idle detection
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 00:11:42 -05:00
e12f78c479 chore: initial commit of TaskTracker project
Existing ASP.NET API with vanilla JS SPA, WindowWatcher, Chrome extension, and MCP server.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 22:08:45 -05:00