Skip to content

Disk widget counts purgeable space as free, so it disagrees with Disk Utility #686

Closed

Description

@M4n0x

What happens

The built-in Disk widget shows 83% for a startup disk that Disk Utility, df -k / and a df-based script widget all show at 86%. Its popup says 83.6 GB available, while Disk Utility says 66.8 GB free.

Steps to reproduce

  1. Add the Disk widget.
  2. On a Mac with purgeable space, such as local snapshots or caches, compare its percentage and free space with Disk Utility or df -k /.

Expected

The same used percentage and free space as Disk Utility and df. Its warnings would then come on at the same point as a script reading df.

Environment

  • StableBar main at a2e47d3, also in v0.16.0-beta.20261116052105.1123
  • macOS 27.2.1 (26B131), APFS startup disk of 494 GB

Evidence

What macOS reports for / on that Mac:

Source Free Used
volumeAvailableCapacityForImportantUsage (Finder's Available) 83.57 GB 83.1%
volumeAvailableCapacity 66.82 GB 86.5%
df -k / Available 66.82 GB 86%
Disk Utility Free 66.83 GB

The 16.75 GB difference is purgeable space.

Diagnosis

SystemVolumes.volume(at:) in Sources/StableBar/DiskMetrics.swift reads volumeAvailableCapacityForImportantUsage through diskAvailable(important:plain:). That value includes purgeable space, like Finder's Available. docs/widgets.md and docs/providers.md describe the same behavior. Disk Utility and df count purgeable space as used.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Nov 16, 2026
  2. stablebar-releases commented on Nov 16, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.16.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions