Skip to content

feat(coderd): bump workspace deadline on AI agent activity#21584

Merged
mafredri merged 2 commits intomainfrom
mafredri/feat-ai-agent-bump-workspace-deadline
Jan 22, 2026
Merged

feat(coderd): bump workspace deadline on AI agent activity#21584
mafredri merged 2 commits intomainfrom
mafredri/feat-ai-agent-bump-workspace-deadline

Conversation

@mafredri
Copy link
Member

@mafredri mafredri commented Jan 20, 2026

AI agents report status via patchWorkspaceAgentAppStatus, but this wasn't
extending workspace deadlines. This prevented proper task auto-pause behavior,
causing tasks to pause mid-execution when there were no human connections.

Now we call ActivityBumpWorkspace when agents report status, using the same
logic as SSH/IDE connections. We bump when transitioning to or from the working
state.

Closes coder/internal#1251

AI agents report status via patchWorkspaceAgentAppStatus, but this wasn't
extending workspace deadlines. This prevented proper task auto-pause behavior,
causing tasks to pause mid-execution when there were no human connections.

Now we call ActivityBumpWorkspace when agents report status, using the same
logic as SSH/IDE connections. We skip bumping only when transitioning from
terminal states (complete/failure) to terminal or idle states, since the
work is done.

Closes coder/internal#1251
@mafredri mafredri marked this pull request as ready for review January 21, 2026 13:30
@mafredri mafredri requested review from SasSwart and johnstcn January 21, 2026 13:30
@mafredri
Copy link
Member Author

Just noticed we're not handling idle->idle here, fixing.

@mafredri mafredri merged commit 4c7844a into main Jan 22, 2026
32 checks passed
@mafredri mafredri deleted the mafredri/feat-ai-agent-bump-workspace-deadline branch January 22, 2026 11:52
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tasks: AI agent activity bumps workspace deadline

2 participants