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 workspace port scanning and assignment regression tests - #37250
Keeps workspace port scanning and relay assignment tests beside the code they belong to.
What Changed
Groups 13 workspace-port modules under src/renderer/src/lib/workspace-ports/ and five relay assignment regression suites beside their store. Updates callers and metadata across 41 output files, combining two adjacent tracker tasks in one PR.
Uses concrete owners, including the existing assignment-invariants package subpath. Removes the addressForPort forwarding export and imports its defining URL module directly. Runtime bodies, JSX, hooks, and test assertions are preserved.
Why
Reduces flat-directory clutter while preserving explicit dependencies and avoiding barrel exports.
Linked Issue
N/A — internal module-organization tracker; no pre-existing linked issue.
Visual Proof
N/A — file organization and import paths only; no visual or interaction change.
Testing
Manual rendered-app testing (N/A: no rendered behavior changes).
Existing automated tests retargeted: 72 renderer tests and 41 relay tests passed locally on macOS.
Renderer/relay typechecks, scoped lint/format, changed-code quality, test routing, direct-link and flaky-pattern checks passed.
All four applicable CI workflows passed, including all 12 test shards, cloud verification and desktop packaging (including Windows).
Risk
Level: Low. An incorrect import or test path could break port scanning or omit regression coverage. Two independent source audits verify owners, module loading, mocks, metadata and preserved code; focused tests and CI passed. Revert the PR to undo it; no data migration.
AI Disclosure
Review
Two independent native Codex audits approved the exact commit. Refactor residue and current-parent preservation are checked separately before merge. Detailed evidence remains local.
Agent skill upstream boundary
Not applicable: no upstream skill-installer material is copied or translated.
Notes
Cross-platform paths, remote hosts, mobile consumers and folder workspaces retain their existing behavior. No wire contracts, data formats, process behavior or performance policies change.
Checklist
Focused scope: two adjacent tracker tasks in one PR.
Explained what changed and why.
Stated risk and rollback.
Visual proof N/A with reason.
Self-reviewed correctness, security and performance.
Cross-platform, SSH/remote and path impact considered.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Walkthrough
Renderer components, workspace-port modules, tests, and configuration references now use updated workspace-port paths. The actions module no longer re-exports addressForPort. Relay assignment tests use updated assignment module and invariant imports.
Merge Risk: Minimal · up to e9349
The refactor’s reviewed import and path updates have no identified merge-blocking risk.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly identifies the main change: grouping workspace port scanning and assignment regression tests. It is concise and relevant to the changeset.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Description check
The description is complete and follows the repository template. It explains the change and rationale, documents testing, risk, rollback, visual proof, AI disclosure, scope boundaries, and checklist s…
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. 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 0 functions across 38 files. (2 skipped: 2 unsupported.)
Full details: Description check
Explanation
The description is complete and follows the repository template. It explains the change and rationale, documents testing, risk, rollback, visual proof, AI disclosure, scope boundaries, and checklist status. The lack of a linked issue is explained as an internal tracker change, which is consistent with the template's maintainer exception.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
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.
ELI5
Keeps workspace port scanning and relay assignment tests beside the code they belong to.
What Changed
Groups 13 workspace-port modules under
src/renderer/src/lib/workspace-ports/and five relay assignment regression suites beside their store. Updates callers and metadata across 41 output files, combining two adjacent tracker tasks in one PR.Uses concrete owners, including the existing
assignment-invariantspackage subpath. Removes theaddressForPortforwarding export and imports its defining URL module directly. Runtime bodies, JSX, hooks, and test assertions are preserved.Why
Reduces flat-directory clutter while preserving explicit dependencies and avoiding barrel exports.
Linked Issue
N/A — internal module-organization tracker; no pre-existing linked issue.
Visual Proof
N/A — file organization and import paths only; no visual or interaction change.
Testing
Risk
Level: Low. An incorrect import or test path could break port scanning or omit regression coverage. Two independent source audits verify owners, module loading, mocks, metadata and preserved code; focused tests and CI passed. Revert the PR to undo it; no data migration.
AI Disclosure
Review
Two independent native Codex audits approved the exact commit. Refactor residue and current-parent preservation are checked separately before merge. Detailed evidence remains local.
Agent skill upstream boundary
Notes
Cross-platform paths, remote hosts, mobile consumers and folder workspaces retain their existing behavior. No wire contracts, data formats, process behavior or performance policies change.
Checklist