Skip to content

Use underscore-separated Pulse AppStorage keys - #376

Open
tjni wants to merge 1 commit into
kean:mainfrom
tjni:agent/pulse-upstream-appstorage-underscore
Open

Use underscore-separated Pulse AppStorage keys#376
tjni wants to merge 1 commit into
kean:mainfrom
tjni:agent/pulse-upstream-appstorage-underscore

Conversation

@tjni

@tjni tjni commented Jul 17, 2026

Copy link
Copy Markdown

What changed

Replace eight dotted Pulse UI @AppStorage keys with underscore-separated keys.

Why

I captured a deadlock: while SwiftUI rendered, an unrelated background UserDefaults write notified Pulse's console-mode @AppStorage observer.

Research showed that dotted keys can make @AppStorage observe the entire defaults store. Dot-free keys let SwiftUI observe each setting separately and avoid the deadlock.

Existing Pulse UI preferences will reset once after this change. I left out migration for the moment pending feedback.

@tjni
tjni marked this pull request as ready for review July 17, 2026 07:00
@tjni
tjni force-pushed the agent/pulse-upstream-appstorage-underscore branch from 90b3f03 to 22b0ee5 Compare July 17, 2026 07:03
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