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(renderer): use concrete launch and activity owners - #40630
Finish routing renderer chat/activity callers to the files that define the values they use.
What Changed
Retarget nine import bindings across launch, chat, crew and activity consumers. Remove three foreign exports from activity-event-builder and three inert launch-registry mock properties (two disappear with whole retired suites). Preserve the existing store/cache instances, production bodies and eager initialization order. No new barrels, wrappers, aliases or state copies.
Apply the repository test policy to four touched suites: retain two complete registrations, retire eleven complete prohibited or mixed registrations, delete two now-empty suites and remove their timing entries. No new tests, partial assertion edits or equivalent replacement coverage are claimed.
Why
These consumers still reached defining values through intermediate feature modules after earlier layout moves. Direct-owner imports complete this boundary cleanup without relocating cohesive owners to inflate move counts.
Linked Issue
Maintainer-directed module-layout cleanup; no pre-existing issue linked. Uses the template maintainer exception.
Visual Proof
N/A — module-boundary and test-policy cleanup; no intended UI or interaction change.
Testing
Final pnpm check:changed --maxWorkers=2 --timeout=5: all 28 checks passed, including related units (64.4s).
pnpm tc:web passed.
Both surviving touched suites passed: 2 files, 2 tests.
Normal commit hooks passed. Local validation on macOS. Full current-head hosted workflow 42755733813 passed, including all 12 unit shards, static/typecheck, Linux and Windows packaging, relay integration, selection evidence and required aggregate 129632083395. Inapplicable jobs were skipped by workflow selection.
Test changes explained; no new tests added.
Risk
Level: Medium. Wrong launch-store or activity-cache identity could affect chat status, fork errors or activity records. The source audit checks exact defining owners, unchanged bodies and first eager dependency order. Deliberately retired alarms cover synthetic notice/read branches, internal launch-state cancellation, multi-owner retry, frame placement and pending rehydration scenarios. Those alarms are lost; retained tests are not replacements. Plain revert rolls this change back; no migration or saved-data change is authored.
Review
Independent final source and boundary audits accepted exact head 5f710a143e97; both root replays passed. The complete merge union with upstream test removals was independently audited. Audit evidence stays local and ignored. Full original/current/neighbor source dispositions are now accounted for in the local tracker. A final incoming test-policy update was reviewed after merge following a failed base guard; the complete actual tree was then authenticated. The published-head CI tested the earlier main merge; later parent changes have source-preservation evidence, not retroactive CI credit.
Agent skill upstream boundary
Not applicable; no upstream skill-installer source or data copied.
Notes
Production platform, remote-host and folder-workspace selectors remain unchanged. Type-only imports remain erased. Activity preserves its prior pane-events eager dependency at the same position; registry consumers retain their genuine registry imports before the direct store import.
Checklist
One cohesive remaining renderer boundary cleanup.
Changes, rationale, policy losses, risk and rollback explained.
Visual proof N/A with reason.
Self-reviewed production diff and local gates.
Cross-platform, remote, initialization and path impacts considered.
Independent final audits and full required hosted workflow passed.
No actionable comments were generated in the recent review.
Walkthrough
Imports now resolve activity cache symbols, structured-session launch state and support symbols, and worktree status types from dedicated modules. The changes also remove selected structured-session integration tests, related sharding timing entries, and several CLI resume-run test cases. The CLI resume-run test now uses shared fixture exports.
Merge Risk: Minimal · up to 5f710
This is an import-ownership refactor with no intended behavior change. No concrete merge-blocking risk is evident; hosted checks should still pass before merging.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title clearly summarizes the main change: routing renderer consumers to the concrete launch and activity owners.
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 covers the change, rationale, test-suite removals, validation, risk, rollback, and the lack of UI impact. It also explains the maintainer exception for not linking an issue. The requir…
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 9 files.
Full details: Description check
Explanation
The description covers the change, rationale, test-suite removals, validation, risk, rollback, and the lack of UI impact. It also explains the maintainer exception for not linking an issue. The required sections are substantially complete.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 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.
ELI5
Finish routing renderer chat/activity callers to the files that define the values they use.
What Changed
Retarget nine import bindings across launch, chat, crew and activity consumers. Remove three foreign exports from activity-event-builder and three inert launch-registry mock properties (two disappear with whole retired suites). Preserve the existing store/cache instances, production bodies and eager initialization order. No new barrels, wrappers, aliases or state copies.
Apply the repository test policy to four touched suites: retain two complete registrations, retire eleven complete prohibited or mixed registrations, delete two now-empty suites and remove their timing entries. No new tests, partial assertion edits or equivalent replacement coverage are claimed.
Why
These consumers still reached defining values through intermediate feature modules after earlier layout moves. Direct-owner imports complete this boundary cleanup without relocating cohesive owners to inflate move counts.
Linked Issue
Maintainer-directed module-layout cleanup; no pre-existing issue linked. Uses the template maintainer exception.
Visual Proof
N/A — module-boundary and test-policy cleanup; no intended UI or interaction change.
Testing
pnpm check:changed --maxWorkers=2 --timeout=5: all 28 checks passed, including related units (64.4s).pnpm tc:webpassed.Risk
Level: Medium. Wrong launch-store or activity-cache identity could affect chat status, fork errors or activity records. The source audit checks exact defining owners, unchanged bodies and first eager dependency order. Deliberately retired alarms cover synthetic notice/read branches, internal launch-state cancellation, multi-owner retry, frame placement and pending rehydration scenarios. Those alarms are lost; retained tests are not replacements. Plain revert rolls this change back; no migration or saved-data change is authored.
Review
Independent final source and boundary audits accepted exact head
5f710a143e97; both root replays passed. The complete merge union with upstream test removals was independently audited. Audit evidence stays local and ignored. Full original/current/neighbor source dispositions are now accounted for in the local tracker. A final incoming test-policy update was reviewed after merge following a failed base guard; the complete actual tree was then authenticated. The published-head CI tested the earlier main merge; later parent changes have source-preservation evidence, not retroactive CI credit.Agent skill upstream boundary
Notes
Production platform, remote-host and folder-workspace selectors remain unchanged. Type-only imports remain erased. Activity preserves its prior pane-events eager dependency at the same position; registry consumers retain their genuine registry imports before the direct store import.
Checklist