Skip to content

Bug Report: Inaccurate Dormancy Notification Message #18308

Open
@bjornrobertsson

Description

@bjornrobertsson

Summary

The workspace dormancy notification message displays incorrect timing information that doesn't align with the configured template settings, causing user confusion.

Environment

  • Coder Version: 2.19.1

Issue Description

The dormancy notification message shows a "4 weeks" deletion timeframe instead of calculating the correct time based on the workspace template's dormancy settings, likely the 30 days calculated to 4 weeks.

Current Message:

Your workspace xxxx has been marked dormant because of inactivity exceeded the dormancy threshold.
Dormant workspaces are automatically deleted after 4 weeks from now of inactivity.
To prevent deletion, use your workspace with the link below.

Customer's Template Settings:

  • Dormancy Threshold: 30 days
  • Auto-delete After Dormancy: 90 days

Expected Behavior:
The notification should display "90 days" (or the configured auto-delete period) instead of "4 weeks".

Root Cause Analysis

Initial investigation suggests the issue may be related to the notification template using the wrong value instead of referencing the TimeTilDormantAutoDelete setting from the workspace template configuration.

Relevant Code References:

Impact

  • User Experience: Misleading information causes confusion about actual deletion timeline
  • Business Impact: Users may unnecessarily panic or take premature action based on incorrect timeframes
  • Trust: Inaccurate system notifications reduce confidence in the platform

Steps to Reproduce

  1. Configure a workspace template with:
    • Dormancy threshold: 30 days
    • Auto-delete after dormancy: 90 days
  2. Let a workspace become dormant
  3. Observe the notification message received
  4. Note the discrepancy between "4 weeks" in message vs. 90 days in settings

Proposed Solution

Update the dormancy notification template to dynamically calculate and display the correct auto-deletion timeframe based on the workspace template's TimeTilDormantAutoDelete setting.

Priority

Medium - While not system-breaking, this creates user confusion and trust issues with system notifications.

Additional Notes

  • This issue may affect multiple customers using custom dormancy settings
  • Verification needed on whether newer Coder versions have resolved this issue
  • May go unnoticed when the same value applies to Dormancy and AutoDelete

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-reportedBugs reported by enterprise customers. Only humans may set this.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions