fix: use "idle timeout" as task auto-pause reason by DanielleMaywood · Pull Request #22287 · coder/coder
The task auto-pause notification was using "inactivity exceeded the dormancy threshold" as the pause_reason. This is misleading because the actual trigger is the workspace build deadline expiring (autostop TTL), not dormancy. Dormancy is a completely separate mechanism that checks LastUsedAt against TimeTilDormant and produces BuildReasonDormancy. Change the pause_reason to "idle timeout" which accurately describes what happened: the AI agent went idle, activity bumps stopped, and the workspace deadline expired.
DanielleMaywood
changed the title
fix(notifications): use "idle timeout" as task auto-pause reason
fix(coderd/notifications): use "idle timeout" as task auto-pause reason
DanielleMaywood
changed the title
fix(coderd/notifications): use "idle timeout" as task auto-pause reason
fix: use "idle timeout" as task auto-pause reason
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