- 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>
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>