Skip to content

refactor(renderer): use concrete launch and activity owners - #40630

Merged
nwparker merged 1 commit into
mainfrom
module-layout-v2/renderer-direct-owner-closure-d78a
Nov 10, 2026
Merged

nwparker merged 1 commit into
mainfrom
module-layout-v2/renderer-direct-owner-closure-d78a

Conversation

@nwparker

@nwparker nwparker commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

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

  • 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.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

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: Passed 5

Check name Status Explanation
Title check Passed The title clearly summarizes the main change: routing renderer consumers to the concrete launch and activity owners.
Docstring Coverage Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed 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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4df7df2f-907a-48ef-be80-795b4cb44837
Commits

Reviewing files that changed from the base of the PR and between 0dc718b and 5f710a1.

Files selected for processing: 13

  • config/scripts/ci/sharding/ci-shard-timings.json
  • src/renderer/src/components/activity/activity-event-builder.ts
  • src/renderer/src/components/activity/use-agent-pane-threads.ts
  • src/renderer/src/components/native-chat/host-access/use-native-chat-provisional-launch.ts
  • src/renderer/src/components/native-chat/messages/actions/native-chat-fork-launch.ts
  • src/renderer/src/components/native-chat/session/status/StructuredAgentSessionStatusBridge.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.availability-notice.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.history-read-state.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.notice-card.test.tsx
  • src/renderer/src/components/orchestration-crew/CrewAgentIcons.tsx
  • src/renderer/src/components/orchestration-crew/OrchestrationCrewPanel.tsx
  • src/renderer/src/components/tab-bar/cli-chat-resume-close-admission.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-run.test.ts
Files with no reviewable changes: 4

  • config/scripts/ci/sharding/ci-shard-timings.json
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.history-read-state.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.notice-card.test.tsx
  • src/renderer/src/components/native-chat/surfaces/integration/NativeChatStructuredSession.availability-notice.test.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@nwparker
nwparker merged commit 086817c into main Nov 10, 2026
41 checks passed
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