Skip to content

refactor(native): centralize events and runtime probes - #70

Merged
aamott merged 1 commit into
refactor/settings-source-cleanupfrom
refactor/native-boundary
Oct 17, 2026
Merged

aamott merged 1 commit into
refactor/settings-source-cleanupfrom
refactor/native-boundary

Conversation

@aamott

@aamott aamott commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Stack

Depends on #69. Based on refactor/settings-source-cleanup at 7c377ce so overlapping settings/shell test imports stay conflict-free. Merge #69 first, then retarget this PR to main.

Changes

  • Route workspace changes, git-import progress, and sync event transport through a typed native/events map. Keep domain translation and canonical-root policy in features.
  • Centralize host/platform detection under native/runtime, including startup; feature tests mock that seam instead of Tauri.
  • Enforce the boundary in ESLint for static/type imports, re-exports, dynamic imports, and literal require calls. Test the actual lint config.
  • Cover payload delivery, registration errors/pending promises, and cleanup after unmount; retain watcher lifecycle behavior.
  • Complete finish_native_boundary and update related audit findings without claiming application-port work is resolved.

Verification

  • pnpm qa passes: lint, Knip, typecheck, TypeScript suites, Rust format/tests.
  • Focused tests: 106 files / 1086 tests pass.
  • Commit hooks pass changed-file lint and workspace typecheck.
  • Baseline comparison at 7c377ce vs 88c52e9: SettingsTab and DesktopShell.dirtySync pass on both revisions and reproduce the same existing React act / native-listener / quarantine-fixture warnings. Nothing suppressed; fixture cleanup remains separate.
  • No Rust, sync algorithm, release, or user-data changes. v0.5.0 stays frozen.

Scope

This is an import/transport refactor, not a new browser fallback policy or a fix for the unreproduced external-change report. Blocking native I/O remains a separate audit.

@aamott
aamott merged commit 814ba3b into refactor/settings-source-cleanup Oct 17, 2026
10 checks passed
@aamott

aamott commented Oct 17, 2026

Copy link
Copy Markdown
Owner Author

Follow-through to main is tracked in #72. This PR merged into its original stacked base after #69 had already landed; #72 applies only squash commit 814ba3b onto main containing #69 and #71. The stable patch ID matches exactly, and combined local QA passes.

@aamott
aamott deleted the refactor/native-boundary branch October 17, 2026 23:33
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