Skip to content

fix: restore main typecheck after concurrent merges - #34202

Merged
AmoabaKelvin merged 3 commits into
mainfrom
brennanb2025/fix-main-type-skew-1026
Oct 27, 2026
Merged

AmoabaKelvin merged 3 commits into
mainfrom
brennanb2025/fix-main-type-skew-1026

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 27, 2026 •

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

Main's typecheck and the e2e typecheck ratchet are failing, which blocks unrelated PRs' CI. Concurrent merges left main inconsistent:

The restart and transcript named tests pass (29/29). During CI, a later main merge strengthened the HTTP-link store type; the document-link test fixture now includes the three required empty project-catalog arrays, and its 14 tests pass. CI is the typecheck gate.

Review classification: full path.

Plan: reuse the same known-worktree lookup already used by the restart launch-target resolver, preserving tab start-folder precedence, and point both the test import and its existing transform selection at the moved mobile module. Full source review; qa=tests as directed for this compile/import repair.

#33629 moved the worktree lookup into resolveAccountRestartLaunchTarget while #33659 added a worktree?.path fallback in the resume path, leaving an unbound name. #33640 moved mobile-native-chat-stream-frame under native-chat/ while #33628's e2e test still imported the old path.
@coderabbitai

coderabbitai Bot commented Oct 27, 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: 8223db2d-ab05-401d-a63e-4b7aab39c1a2
Commits

Reviewing files that changed from the base of the PR and between 584b112 and 0b83a62.

Files selected for processing: 4
  • config/vitest.config.ts
  • src/renderer/src/components/browser-pane/workspace-doc/doc-preview-external-link-confirmation.test.ts
  • src/renderer/src/lib/agent-account-restart-startup.ts
  • tests/e2e/native-chat-transcript-file-order.unit.test.ts

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

Walkthrough

The changes update native-chat module path references in the Vitest configuration and a unit test. The resume startup plan now uses a known worktree path as a launchCwd fallback. The external-link confirmation test fixture adds empty repository and endpoint project collections.

Priority: Normal

Merge Risk: Minimal · up to 0b83a

The changes are mergeable with no concrete current-head risk identified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description explains the typecheck and import repairs, affected files, rationale, testing results, and risk. However, it omits most required template sections, including ELI5, What Changed, Why, L… Complete the required template sections. Add an issue link, provide Visual Proof or state N/A with a reason, document testing and platform coverage, complete the required checkboxes, and include the remaining review, notes, AI disclosure, a…
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly identifies the primary change: restoring typecheck after concurrent merges.
Docstring Coverage Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within survi…
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: Docstring Coverage

Explanation

Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 4 files.

Full details: Description check

Explanation

The description explains the typecheck and import repairs, affected files, rationale, testing results, and risk. However, it omits most required template sections, including ELI5, What Changed, Why, Linked Issue, Visual Proof or N/A, Testing checkboxes, Review, Notes, Agent skill upstream boundary, and Checklist.

Resolution

Complete the required template sections. Add an issue link, provide Visual Proof or state N/A with a reason, document testing and platform coverage, complete the required checkboxes, and include the remaining review, notes, AI disclosure, and checklist information as applicable.

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.

@brennanb2025 brennanb2025 changed the title fix: restore main typecheck after two concurrent merges fix: restore main typecheck after concurrent merges Oct 27, 2026
@brennanb2025

Copy link
Copy Markdown
Contributor Author

Concurrent merges left main unable to typecheck: account restart used an unbound worktree name, and a transcript test imported a moved mobile module. This restores the existing restart folder rule—tab start folder first, then the known workspace path—and updates both the test import and its existing transform selection.

A later main merge also strengthened the HTTP-link store type. Its document-link test fixture now supplies the three required empty catalog arrays. No production routing behavior changed.

The full review finished in three rounds with a fresh KEEP ruling and no remaining or deferred findings. The review fixed the omitted transform-path update and the newly exposed main-side test fixture mismatch. The fresh common-pattern mechanism comparison is complete; the terminal-specific working-folder representation remains intended for user-started commands and remote shells.

Verified: 29/29 restart/transcript tests on 489db04, plus 14/14 document-link tests after 0b83a62. The only commit after the 29-test run changes that document-link fixture, so its evidence carries. An isolated actual-transform check passes without Expo, with the normal transform failing as the negative control. Final CI passed on 0b83a62, including static analysis/typecheck, five unit-test shards, relay integration and packaging.

QA is tests, as directed for this compile/import repair. No running-app, agent, or screenshot result is claimed.

For Brennan’s review: no visual change. The main judgment points are the restart folder fallback, moved module transform, and catalog fixture.

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.

2 participants