You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tasks: AI agent activity bumps workspace deadline #1251
Scope: When an AI agent reports certain status changes, extend the workspace deadline to prevent auto-stop during active work.
Note: This implements AI agent activity bump for all workspaces (including task workspaces). Task workspaces use the template's regular default_ttl and activity_bump settings. Task-specific TTL columns may be added post-GA if customer feedback indicates a need for different timeout behavior between regular workspaces and task workspaces.
App status states (from codersdk/workspaceapps.go):
working - AI agent actively processing
idle - AI agent waiting for input
complete - task finished successfully
failure - task encountered an error
Changes:
Modify patchWorkspaceAgentAppStatus in coderd/workspaceagents.go
Call ActivityBumpWorkspace based on previous and new state:
complete → idle|complete: NO bump (task already done)
failure → idle|failure: NO bump (task already failed)
All other transitions: bump (includes working, and transitions from working)
Files:
coderd/workspaceagents.go
coderd/workspaceagents_test.go
Acceptance criteria:
working status triggers deadline bump
Transition from working to other states triggers deadline bump
complete → idle or complete → complete does NOT trigger bump
failure → idle or failure → failure does NOT trigger bump
Activity
feat(coderd): bump workspace deadline on AI agent activity
feat(coderd): bump workspace deadline on AI agent activity (coder#21584)