Skip to content

A configuration saved by a newer build fails to load in older builds #223

Closed

Description

@Seb-GRAF

Problem

Unknown properties are errors, by design (docs/configuration.md). So when a newer build writes a property that an older build doesn't know, the whole file is invalid for the older build, and the error says only Unknown property.

A real case: #192 (22aa125) added bar.motion and bar.popupTransition. They ship in the v0.6.0-beta builds but not in v0.5.0. A configuration that sets either one fails to load in v0.5.0.

This hits:

  • beta users who switch back to Stable, which keeps the beta until a newer stable ships but can also mean running an older build on another Mac;
  • dotfiles shared across Macs on different versions;
  • shared includes;
  • store packages, which are guarded only by the optional minimumVersion in their manifest.

Migrations have the opposite gap. At launch, BarStore.swift:115-118 runs migrateConfigurationFile and migrateEarlierColors on the shared main file only, and the colour migration runs once per Mac behind the migratedEarlierColors UserDefaults flag. Includes, screen-setup bar files, package files and a file copied from another Mac after the flag is set are not migrated.

Proposal

  1. A root-level property naming the oldest StableBar version a file needs. An older build that reads it reports This configuration needs StableBar X.Y or later instead of Unknown property. Settings and command-line edits set it when they write a property newer than the current value.
  2. Apply the migrations to every file the loader reads, instead of only the main file at launch, and drop the per-Mac flag.

Open question: whether includes and package files carry their own requirement or the main file covers them.

Possible today

No. --validate reports the unknown property, but nothing tells the user which version they need, and migrations run only on the main file.

Related

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    enhancement
    on Oct 22, 2026
  2. added
    P2
    on Nov 8, 2026
  3. stablebar-releases commented on Nov 11, 2026

    @stablebar-releases

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

Labels

P2enhancementreleased

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions