Skip to content

v1.2.2: never let Night Shift toggles flip the Light/Dark theme - #14

Merged
adamdexter merged 1 commit into
mainfrom
claude/v1.2.2-theme-guard
Jul 3, 2026
Merged

v1.2.2: never let Night Shift toggles flip the Light/Dark theme#14
adamdexter merged 1 commit into
mainfrom
claude/v1.2.2-theme-guard

Conversation

@adamdexter

Copy link
Copy Markdown
Owner

⚠️ Merging auto-releases v1.2.2

On some macOS versions (confirmed on Sonoma 14.5; apparently decoupled on newer releases), the "Auto" appearance setting is tied to the Night Shift engine — toggling Night Shift also flips the system Light/Dark theme. This affected both the menu bar toggle and the per-app override.

The bridge now snapshots the theme around every setNightShiftEnabled: call (SkyLight SLSGet/SetAppearanceThemeLegacy) and restores it if it flips within ~3s. Behavior-neutral on OS versions without the coupling; theme changes made outside our own calls are never touched.

Verified live on Sonoma 14.5: the guard's log confirms macOS flipped the theme on toggle-off and the guard restored it within 300ms — theme identical through a full off/on cycle.

This release is also the first to exercise the TAP_PUSH_TOKEN tap auto-update.

🤖 Generated with Claude Code

On some macOS versions (confirmed on Sonoma 14.5), the "Auto"
appearance setting is coupled to the Night Shift engine: toggling
Night Shift also flips the system Light/Dark theme. Users treat
Night Shift tinting and the theme as independent settings, so no
ShiftChange action should ever change the theme — this affected both
the new menu bar toggle and the per-app override.

The bridge now snapshots the theme (SkyLight
SLSGetAppearanceThemeLegacy) around every setNightShiftEnabled: call
and restores it if it changes within ~3s (checks at 0.3/1.2/3.0s;
a generation counter lets rapid toggles supersede older guards).
Behavior-neutral on macOS versions without the coupling — the guard
only acts when a flip actually happens — and theme changes made
outside our own calls are never touched.

Verified live on Sonoma 14.5: toggling Night Shift off flipped the
theme (guard log confirms) and it was restored within 300ms; theme
identical before/after a full off/on cycle.

Bump version to 1.2.2.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@adamdexter
adamdexter merged commit 6c959d6 into main Jul 3, 2026
4 checks passed
@adamdexter
adamdexter deleted the claude/v1.2.2-theme-guard branch July 3, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant