fix: use "idle timeout" as task auto-pause reason by DanielleMaywood · Pull Request #22287 · coder/coder

@DanielleMaywood

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 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

Feb 24, 2026

@DanielleMaywood DanielleMaywood changed the title fix(coderd/notifications): use "idle timeout" as task auto-pause reason fix: use "idle timeout" as task auto-pause reason

Feb 24, 2026

mafredri