Skip to content

Fix partial macOS defaults tracking#410

Closed
cursor[bot] wants to merge 1 commit into
developfrom
cursor/critical-bug-investigation-ee4b
Closed

Fix partial macOS defaults tracking#410
cursor[bot] wants to merge 1 commit into
developfrom
cursor/critical-bug-investigation-ee4b

Conversation

@cursor

@cursor cursor Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes a critical partial-tracking bug in the macOS defaults filesystem view.

When a user tracked only one untracked macOS default, the backend wrote modules/darwin/system-defaults.nix with just that selected item. Future scans then returned an empty result solely because the file existed, hiding all remaining untracked defaults and making them effectively untrackable from the UI.

This PR:

  • Keeps scanning after system-defaults.nix exists and filters out only defaults already present in the module.
  • Merges newly selected defaults into an existing system-defaults.nix instead of overwriting it.
  • Adds regression tests for preserving untracked defaults and merging without dropping/duplicating tracked defaults.

Test Plan

  • cargo +stable test --manifest-path apps/native/src-tauri/Cargo.toml system_defaults

Docs

  • No docs update needed
Open in Web View Automation 

Co-authored-by: cooper <czxtm@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor
Warnings
⚠️ PR is marked WIP / draft — do not merge until ready for review.

📋 PR Overview

Lines changed 202 (+190 / -12)
Files 0 added, 3 modified, 0 deleted
Draft / WIP yes
Has Test Plan yes
No Test Plan Needed no
New UI components no
New Storybook stories no
New Rust modules no
New TS source files no
New tests no
package.json touched no
Cargo.toml touched no
Infra / CI touched no

🔬 Coverage

Report Lines Statements Functions Branches
apps/native/coverage/coverage-summary.json 27.3% 27.3% 25.7% 20.0%

Generated by 🚫 dangerJS against 0586281

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

🎨 Storybook preview

Open Storybook preview

Updated for 0586281


❌ Failed snapshots (2)

These stories' HTML snapshots changed. Update snapshots ↗ to regenerate baselines and open a PR:

Settings/AutoConfigField › Controls

Settings/AutoConfigField › Controls

Settings/AutoTuningSection › Evolution Settings

Settings/AutoTuningSection › Evolution Settings

@linear-code

linear-code Bot commented Jul 1, 2026

Copy link
Copy Markdown

ENG-572

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.

2 participants