fix: remove stored identity defaults from worktree result - #10787
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe worktree prototype removes stored-property ChangesWorktree identity initialization
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This focused change removes redundant stored identity defaults while preserving optional initializer behavior; no actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 25✅ Passed checks (25 passed)
Full details: Description checkExplanation The description provides a detailed summary and verification results. It does not include the template checklist or review-trigger block, but the core required information is complete and the Demo Video section is not needed for this compiler-fix change. Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. Full details: Cmux Swift Actor IsolationExplanation PASS. The committed diff changes only two stored optional property declarations in Full details: Cmux Swift Blocking RuntimeExplanation PASS: The pull request changes only two stored-property declarations in Full details: Cmux Browser Automation Off-MainExplanation PASS: The pull request changes only Full details: Cmux Expensive Synchronous LoadExplanation PASS — the commit changes only two stored-property declarations in Full details: Cmux Cache Substitution CorrectnessExplanation PASS: The pull request changes only two stored-property declarations in Full details: Cmux No Hacky SleepsExplanation PASS: The commit changes only Full details: Cmux Algorithmic ComplexityExplanation PASS: The diff changes only two stored optional property declarations in Full details: Cmux Swift ConcurrencyExplanation PASS: The pull request changes only two stored optional property declarations in Full details: Cmux Swift `@Concurrent`Explanation PASS — The exact HEAD diff changes only the stored declarations of Full details: Cmux Swift Package BoundariesExplanation PASS: The diff changes only two stored-property declarations in Full details: Cmux Swiftpm LockfilesExplanation PASS: The pull request changes only Full details: Cmux Swift LoggingExplanation PASS: The diff changes only two stored-property declarations in Full details: Cmux User-Facing Error PrivacyExplanation PASS. The only production diff removes stored Full details: Cmux Full InternationalizationExplanation PASS. The exact commit diff changes one file and only removes stored Full details: Cmux Swiftui State LayoutExplanation PASS: The pull request changes only two stored optional property declarations in Full details: Cmux Architecture RethinkExplanation PASS: The pull request changes only two stored-property declarations in Full details: Cmux Swift Auxiliary Window Close ShortcutsExplanation PASS: The diff only removes stored Full details: Cmux Source ArtifactsExplanation PASS. The only changed path is Full details: Cmux No Test Or Debug Seam In Production SourceExplanation PASS. The PR changes only Full details: Cmux No Ambient Global StateExplanation PASS. The diff changes only two existing stored ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Follow-up to merged PR #10781. Its explicit initializer assigns the two
filesystem identity
letproperties, but the stored declarations still had= nildefaults. Xcode 26.5's nightly compiler therefore reports that eachimmutable property may only be initialized once in
Sources/ExtensionWorktreePrototype.swift.This fix removes those stored-value defaults while keeping
= nilon theexplicit initializer parameters, so callers that omit identity values remain
source-compatible. The component-wise optional identity comparison from #10781
and its existing behavior test asserting that captured identity values survive
initialization are unchanged.
This is a focused post-merge repair, not a duplicate of open PR #10777. The
remote PTY overlap is limited to the stale bridge lease and reattach work owned
by #10367/#10368, #10173/#10327/#10350; no remote PTY code is changed here.
Verification
git diff --check./scripts/check-pbxproj.shpython3 scripts/check-package-resolved-policy.pypython3 scripts/check-workspace-package-groups.py --checkinitializer call forms
the PR's CI run will provide the real Xcode compiler proof for this repair.
The repository has no
.github/swift-file-length-budget.tsv,swift-warning-budget.tsv, orscripts/swift_file_length_budget.pyon thisbase, so no budget files were created or modified.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit