fix(coderd): use BuildReasonTaskAutoPause for task workspaces by johnstcn · Pull Request #22126 · coder/coder
When a workspace with a TaskID hits its deadline, use BuildReasonTaskAutoPause instead of BuildReasonAutostop. This allows downstream systems to distinguish between regular autostop and task workspace pauses.
johnstcn
changed the title
fix(autobuild): use BuildReasonTaskAutoPause for task workspaces
fix(coderd): use BuildReasonTaskAutoPause for task workspaces
johnstcn
marked this pull request as ready for review
Copilot AI review requested due to automatic review settings
February 17, 2026 12:47- Add task_auto_pause to buildReasonLabels with label 'Task Auto-Pause' - Add task_auto_pause to systemBuildReasons array - Add task_auto_pause to getDisplayWorkspaceBuildInitiatedBy (returns 'Coder') - Add test case for task_auto_pause in getDisplayWorkspaceBuildInitiatedBy - Update TaskPausedTimeout story to use task_auto_pause reason
johnstcn
deleted the
cj/task-lifecycle-autopause
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters