Skip to content

test: use the activation tab type to restore renderer CI - #29493

Closed
OrcaWin wants to merge 1 commit into
mainfrom
OrcaWin/test-audit-mirror-tab-contract
Closed

OrcaWin wants to merge 1 commit into
mainfrom
OrcaWin/test-audit-mirror-tab-contract

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1
Prod 0 0 0 0

ELI5

Restore CI for changes that run renderer checks. A recently added terminal test uses a type the lint rules reject, so the full PR workflow stops before tests run.

What Changed

Use the existing RuntimeMobileSessionClientTab type for the activation response's tab mapper instead of object. This matches RuntimeMobileSessionTabsResult.tabs; test inputs, assertions and production behavior remain identical.

Why

Runs 38861374138 and 38861376277 both fail on this annotation inherited from #29472. Using the response's named type preserves that regression test and fixes the error without suppressing the rule or weakening its assertions.

Linked Issue

Internal CI audit; follows #29472.

Visual Proof

N/A — type annotation only, no application interaction change.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Reproduced the lint failure before the change; the same check passes afterward. All three target tests passed before and after; target plus real web-mirror recovery sibling: 11 passed. Renderer typecheck, changed-code quality, normal/anti-slop lint, formatting and whitespace checks pass. Independent static review verified the response type and import path. Linux, Bun 1.4.3 and Node 24.21; no desktop launch or Windows/macOS run.

Single-worker official module observation: original 818 ms, candidate 1,607 ms, all three cases passed in each. These are unpaired noisy observations of a type-only change, with no performance claim. Full PR CI and hosted observation remain pending.

Review

Independent preservation review approved: no assertion or runtime changes, existing named owner type, no casts.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Type-only test repair. No production, SSH, platform or wire change.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@coderabbitai

coderabbitai Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e8a4e3b0-2d4a-4a99-b23d-b46a928043e3
📥 Commits

Reviewing files that changed from the base of the PR and between 7005af3 and 16e27c7.

📒 Files selected for processing: 1
  • src/renderer/src/components/terminal-pane/remote-runtime-pty-transport-mirror-resolve-overlap.test.ts

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

📝 Walkthrough

The test imports RuntimeMobileSessionClientTab and uses it to type the tabs in the mocked activation response.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 16e27

This test-only typing change leaves no identified behavior or merge-readiness concern.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly identifies the focused test type change and its purpose of restoring renderer CI.
Description check Passed The description is complete and explains the change, reason, testing, scope, and checklist status. It references #29472 but does not provide a direct linked issue or use the requested Fixes format; th…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
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.
✨ 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

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

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