Repository navigation
fix: restore main typecheck after concurrent merges - #34202
Conversation
|
No actionable comments were generated in the recent review.
|
|
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 For Brennan’s review: no visual change. The main judgment points are the restart folder fallback, moved module transform, and catalog fixture. |
Main's typecheck and the e2e typecheck ratchet are failing, which blocks unrelated PRs' CI. Concurrent merges left main inconsistent:
src/renderer/src/lib/agent-account-restart-startup.ts: Codex restarts keep the configured command before a session is recorded #33629 moved the worktree lookup intoresolveAccountRestartLaunchTarget, while fix(accounts): an account-switch restart resumes Claude in the folder it was started in #33659 added aworktree?.pathstart-folder fallback in the resume path. Together they leftworktreeunbound (TS2304). The fallback now readsstate.getKnownWorktreeById(args.worktreeId)?.path, the same lookup the target resolver uses. Behavior is unchanged.tests/e2e/native-chat-transcript-file-order.unit.test.ts: refactor(mobile): group native chat send and stream state #33640 movedmobile-native-chat-stream-frameundermobile/src/session/native-chat/, while Keep chat thinking before its answer across history loads #33628's test still imported the old path. The import now points at the new location. The existingphoneContractModulestransform entry inconfig/vitest.config.tsalso follows that move, so root-only test installs do not require Expo configuration.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=testsas directed for this compile/import repair.