-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Repo: coder/coder
Scope: Add workspace activity bump when users view task logs to prevent auto-pause during active monitoring.
Problem: Currently, viewing task logs via /logs endpoint does not bump workspace deadline. A user actively monitoring a task (checking logs every few minutes) will see the task auto-pause despite their engagement. This creates an inconsistent experience where UI interaction differs from CLI behavior.
Changes:
- Modify
GET /api/v2/tasks/{user}/{task}/logsincoderd/aitasks.go - Call
ActivityBumpWorkspacewhen logs are fetched for an active task (not when paused - that's just viewing the snapshot) - Use the same activity bump logic as other user interactions
Files:
coderd/aitasks.go
Acceptance criteria:
- Viewing logs for active task bumps workspace deadline
- Viewing snapshot for paused task does NOT bump deadline
- Activity bump uses same logic as other workspace interactions
- No regression in log viewing performance
Dependencies: None
References:
- RFC: Tasks: Start/Pause/Resume Lifecycle: TTL Integration ("User interactions (viewing logs, sending messages) also bump the deadline via their respective endpoints")