Skip to content

Theme default drift: "light" vs "auto" depending on whether a config file exists #37

Closed

Description

@falbany

The default theme is defined three different ways, and the effective value depends on how the app was started:

Place Default
Runtime dataclass AppConfig.theme (core/config/models.py:263) "light"
YAML schema Defaults.theme (core/config/schema.py:134) "auto"
Starter template (core/config/template.py:110) writes theme: auto
Docs (docs/configuration-profile.en.md:65) says light

ConfigReader.load() returns early when no config file exists (core/config/reader.py:121-129) without applying schema defaults, so:

  • config-less machine → "light"
  • config file missing the key → "auto"

Pick the intended default (looks like auto, given template + schema agree), align models.py + template + docs, and add a test pinning that "no config file" and "config without theme key" resolve to the same value.

Activity

  1. added
    bug
    on Oct 30, 2026
  2. added this to the v1.0.0 milestone on Oct 30, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions