Skip to content

refactor(renderer): group session tab activation and cancellation - #33100

Merged
nwparker merged 1 commit into
mainfrom
nwparker/module-organization-session-tab-rules
Oct 24, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/module-organization-session-tab-rules

Conversation

@nwparker

@nwparker nwparker commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 14 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​28 $\color{#cf222e}{\Huge{\mathbf{−}}}$​28 0
Prod 16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​26 $\color{#cf222e}{\Huge{\mathbf{−}}}$​27 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1

Groups the provisional session launch and tab activation owners and their existing tests under src/renderer/src/lib/agent-session/. Updates callers, mocks, relative dependencies and test timing paths, removes the provisional-tab forwarding export, and points its consumers and the launch mock at their concrete owners. Runtime bodies and behavior are preserved.

Validation: matched existing 14-suite baselines and candidates in both supported layout configurations, including exact case-name/status parity (default: 121 passed, nine skipped; main: 128 passed, two skipped). Renderer typecheck, changed-code quality, focused formatting and normal commit hooks pass. Two independent source audits and the complete required CI workflow gate merge.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

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: ea394ae8-dc0e-4c63-8bac-f3c255cda8f0
Commits

Reviewing files that changed from the base of the PR and between b33ad1b and 325c1f1.

Files selected for processing: 30
  • config/scripts/ci-shard-timings.json
  • src/renderer/src/components/activity/activity-thread-actions.test.ts
  • src/renderer/src/components/activity/activity-thread-actions.ts
  • src/renderer/src/components/right-sidebar/ai-vault-original-pane-actions.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault-original-pane-actions.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-in-chat-launch.test.ts
  • src/renderer/src/components/right-sidebar/ai-vault-session-resume-in-chat-launch.ts
  • src/renderer/src/components/sidebar/WorktreeCardAgents.activation.test.tsx
  • src/renderer/src/components/sidebar/WorktreeCardAgents.tsx
  • src/renderer/src/components/sidebar/folder-workspace-composer-submit.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-run.test.ts
  • src/renderer/src/components/tab-bar/cli-chat-resume-run.ts
  • src/renderer/src/components/tab-group/useTabGroupActivationCommands.ts
  • src/renderer/src/components/terminal/initial-terminal-admission-wait.test.tsx
  • src/renderer/src/lib/activate-ai-vault-structured-session.ts
  • src/renderer/src/lib/agent-session/structured-agent-session-provisional-tab.test.ts
  • src/renderer/src/lib/agent-session/structured-agent-session-provisional-tab.ts
  • src/renderer/src/lib/agent-session/structured-agent-session-tab-activation.test.ts
  • src/renderer/src/lib/agent-session/structured-agent-session-tab-activation.ts
  • src/renderer/src/lib/launch-agent-in-new-tab-structured-route.ts
  • src/renderer/src/lib/launch-work-item-direct-agent-routing.test.ts
  • src/renderer/src/lib/launch-work-item-direct-agent-routing.ts
  • src/renderer/src/lib/onboarding-folder-agent-launch.ts
  • src/renderer/src/lib/structured-agent-session-action-launch.ts
  • src/renderer/src/lib/structured-agent-session-launch-admission.test.ts
  • src/renderer/src/lib/structured-agent-session-new-chat-own-launch.test.ts
  • src/renderer/src/lib/worktree-creation-structured-session.test.ts
  • src/renderer/src/lib/worktree-creation-structured-session.ts
  • src/renderer/src/store/slices/content-tabs-from-main-frames.test.ts
  • src/renderer/src/store/slices/content-tabs-paired-server-workspace.test.ts

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

Walkthrough

The change updates structured agent-session imports and test mocks to use the agent-session directory. The provisional-tab module no longer re-exports openStructuredAgentSessionProvisionalTab; store-slice tests import that symbol from structured-agent-session-launch-surface. CI timing entries now point to relocated test files, with recorded durations unchanged.

Priority: Low

Merge Risk: Minimal · up to 325c1

No actionable merge-blocking risk remains in the reviewed changes.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Description check Warning The description follows the template sections it covers. It has a clear summary of the restructuring, the preserved behavior, and validation results with test counts. It omits the required ELI5, What … Add the template sections that are missing or empty: an ELI5 summary in plain language; a What Changed section with the before and after; a Why section that explains the chosen approach and alternatives; a Linked Issue entry (for example, F…
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 29 files. (1 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title "refactor(renderer): group session tab activation and cancellation" names a refactor in the renderer. The changeset moves the provisional session launch and tab activation modules and their …
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.
Full details: Title check

Explanation

The title "refactor(renderer): group session tab activation and cancellation" names a refactor in the renderer. The changeset moves the provisional session launch and tab activation modules and their tests into src/renderer/src/lib/agent-session/ and updates imports, mocks, and test timing paths. The title covers the move in general terms. It does not mention the directory move, the removed forwarding export, or the timing-key updates. The word "cancellation" is not evident in the summaries, which describe path changes and a removed re-export only. The title is related to the change but does not name its main point clearly.

Full details: Description check

Explanation

The description follows the template sections it covers. It has a clear summary of the restructuring, the preserved behavior, and validation results with test counts. It omits the required ELI5, What Changed (before/after), Why, Linked Issue, and Visual Proof sections. The Testing checklist items are not ticked, and the Agent skill upstream boundary, Checklist, and AI Disclosure sections are not addressed. The description is mostly a single paragraph of validation details rather than the template structure.

Resolution

Add the template sections that are missing or empty: an ELI5 summary in plain language; a What Changed section with the before and after; a Why section that explains the chosen approach and alternatives; a Linked Issue entry (for example, Fixes #NNN) or a note that the change is internal; a Visual Proof entry, or N/A with the reason that no UI or behavior changes; and a Testing section that lists the platforms tested. Tick the completed Testing and Checklist items. Complete the Agent skill upstream boundary checkbox. Remove or fill the AI Disclosure section as your team policy requires.

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. Analyzed 2 functions across 29 files. (1 skipped: 1 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches: 💡 1
📝 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

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit f6ae058 into main Oct 24, 2026
32 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