Skip to content

Settings shows Custom layout after picking Countdown and Join for a calendar widget #937

Done

Description

@MaHofseth

What happens

In a calendar widget's Display, choosing Countdown and Join under Show leaves the picker on Custom layout. The bar does draw the new layout: with the next meeting hours away, it shows the title and its start time instead of the title and minutes. Title and minutes stays selected as expected.

Steps to reproduce

  1. Open Settings, go to Bar and select a Calendar widget.
  2. Under Content > Display, set Show to Countdown and Join.
  3. Open the Show menu again: Custom layout is checked.

Expected

Show reads Countdown and Join.

Environment

  • StableBar 0.19.0
  • macOS 27.2.1 (26B131)
  • MacBook screen with a notch

Evidence

Seen on the reporter's Mac with a meeting several hours away: after picking Countdown and Join, the preview changed to the start-time form and the menu had a checkmark on Custom layout.

Screen.Recording.2026-11-26.at.01.24.52.mov

Diagnosis

From reading the code on main at 8590fcd; not yet confirmed with a test.

  • WidgetLayoutChoice.countdownAndJoin contains "foreground": "@token.warning".
  • ConfigurationLoader replaces @token. references throughout the composed document with the tokens' values.
  • The picker reads layout from that resolved document and compares it for equality with the unresolved preset, so they differ. Title and minutes is null, so it still matches.

setupWidgetsUseDisplaysThatSettingsOffers doesn't catch this because it compares the layouts setup writes before any tokens are replaced. By the same reasoning, setup's Meetings widget, which writes this layout, should also read as Custom layout (not checked in the app).

Related

Triaged by Claude Code (Claude Sonnet 5.5).

Activity

  1. added
    needs-triage
    on Nov 25, 2026
  2. added
    bug
    P2
    and removed
    needs-triage
    on Nov 26, 2026
  3. stablebar-releases commented on Nov 29, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.20.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

    P2bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions