Skip to content

fix(mac): avoid persisting settings while loading#86

Merged
steipete merged 2 commits intosteipete:mainfrom
0xble:upstream-fix-settings-load-safety
Mar 13, 2026
Merged

fix(mac): avoid persisting settings while loading#86
steipete merged 2 commits intosteipete:mainfrom
0xble:upstream-fix-settings-load-safety

Conversation

@0xble
Copy link
Contributor

@0xble 0xble commented Mar 8, 2026

Fixes #80.

Prevents the macOS settings object from saving UserDefaults, credentials, or config.json while it is still hydrating from config-backed provider state. That avoids the launch-time partial write that was resetting unrelated UI settings and rewriting an existing config file.

I also added a regression test for config-backed init preserving both the existing config and unrelated UI defaults. Built Apps/Mac locally. The current Mac package test target still has unrelated upstream compile failures in EndToEndTests and StatusBarControllerTests, so the new test is included in the package but that target does not fully run clean on main today.

@steipete steipete force-pushed the upstream-fix-settings-load-safety branch from ed5de6e to 3e13e90 Compare March 13, 2026 03:20
@steipete steipete merged commit af55bad into steipete:main Mar 13, 2026
@steipete
Copy link
Owner

Landed via temp rebase onto main.

  • Gate: pnpm run lint && pnpm run build:cli && pnpm run test:safe
  • Land commit: 3e13e90
  • Merge commit: af55bad

Thanks @0xble!

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.

add support for local models

2 participants