You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor: group desktop integration and lifecycle owners - #37600
Desktop integration and lifecycle code still sits directly in src/main. Move 59 implementation/test files into concrete editor, power, permissions, repository-icon, preference, media, page-metadata, desktop-window and quit owners, with all callers and test mocks retargeted atomically.
Remove two forwarding export blocks and import their constants/types from defining owners. Preserve production bodies, asset query suffixes and mock identities, platform gates, launch behavior, and historical reliability evidence. Link the retained executed command to the renamed active gate with the checker’s existing currentCommand field. The Docker lid-sleep oracle now reads either historical or current source paths when given a baseline Git ref. A single reviewed path-ratchet exception permits its intentional historical source lookup.
Validation:
Two independent native Codex audits approve tree d0516251: all 73 affected production source bodies/literals, defining-owner imports, mock interception and path/config changes verified.
67 focused test files passed 671 tests; targeted audit corrections passed 51 tests (one existing skip), then the final WSL/fork mock cohort passed seven tests.
The actual Docker bundler function produces byte-identical bundles from pre-move, moved and current sources; Docker was not invoked.
Required ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=2 passed all 29 checks after the final rebase/edits, including related unit tests (782 seconds).
No actionable comments were generated in the recent review.
Walkthrough
Imports and test mocks now reference relocated main-process modules, including repository icons, desktop integration, external editors, macOS permissions, startup, power, quit, and preferences. CI timing keys, test baselines, and reliability-gate paths were updated to match. The Linux lid-sleep Docker script checks the relocated source path and supports the former path when loading a baseline. Two re-exports were removed.
Merge Risk: Minimal · up to 5a904
No concrete regression or merge-blocking risk was identified in the relocation.
Pre-merge checks: 3 · 1 · 1
Failed checks: 1 warning · 1 inconclusive
Check name
Status
Explanation
Resolution
Description check
The description explains the refactor and reports validation, but it does not follow the required template. It omits the required section headings and lacks a linked issue, explicit visual-proof statu…
Rewrite the description using all required template sections. Add an actual linked issue after “Fixes #”, state “N/A” with a reason for visual proof if there is no UI change, document testing and supported platforms, describe risks and roll…
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 3 passed
Check name
Status
Explanation
Title check
The title clearly and concisely describes the main change: grouping desktop integration and lifecycle code under concrete owners.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Description check
Explanation
The description explains the refactor and reports validation, but it does not follow the required template. It omits the required section headings and lacks a linked issue, explicit visual-proof status, risk assessment, checklist confirmations, and other required template details.
Resolution
Rewrite the description using all required template sections. Add an actual linked issue after “Fixes #”, state “N/A” with a reason for visual proof if there is no UI change, document testing and supported platforms, describe risks and rollback, complete applicable checkboxes, address AI disclosure and the agent-skill boundary, and retain the existing change summary and validation results.
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 50 files. (75 skipped: 6 unsupported, 69 over the file limit.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Some tools did not complete. Review the errors below.
ast-grep (0.51.1)
ast-grep could not parse rule config: /ast-grep-rules/ast-grep-essentials/rules/c/security/null-library-function-c.yml
Tip
🎯 Customize your risk assessments
Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.
✅ Automatic approvals, with your rules
Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Desktop integration and lifecycle code still sits directly in
src/main. Move 59 implementation/test files into concrete editor, power, permissions, repository-icon, preference, media, page-metadata, desktop-window and quit owners, with all callers and test mocks retargeted atomically.Remove two forwarding export blocks and import their constants/types from defining owners. Preserve production bodies, asset query suffixes and mock identities, platform gates, launch behavior, and historical reliability evidence. Link the retained executed command to the renamed active gate with the checker’s existing
currentCommandfield. The Docker lid-sleep oracle now reads either historical or current source paths when given a baseline Git ref. A single reviewed path-ratchet exception permits its intentional historical source lookup.Validation:
d0516251: all 73 affected production source bodies/literals, defining-owner imports, mock interception and path/config changes verified.ORCA_BACKGROUND_LAUNCH=1 pnpm check:changed --maxWorkers=2passed all 29 checks after the final rebase/edits, including related unit tests (782 seconds).