Repository navigation
Conversation
- StructuredChatPaneMenuItems moves out of use-native-chat-context-menu.tsx. - The desktop label-only first-work describe moves out of worktrees-create-metadata-persistence.test.ts into its own file. - The runtime create call against a fake store moves into a test fixture.
Walkthrough
Priority: Merge Risk:
|
There was a problem hiding this comment.
🧹 Nitpick comments: 1
src/main/ipc/worktrees-create-label-only-first-work.test.ts: 1
52-52:Trivial · Maintainability & Code Quality · Quick win Replace or justify the
importOriginalassertions.This assertion and the same assertions at Lines 57, 62, 67, and 72 lack line-specific
SAFETY:explanations. Use a typedimportOriginalcall where possible, as at Line 36. If a cast is unavoidable, explain its safety at that line. As per coding guidelines: “Avoid type assertions exceptas const. Unavoidable casts need a line-specificSAFETY:explanation.”Source: Coding guidelines

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:
35af1561-9625-4693-9519-47f3b92897f1
Files selected for processing: 6-
src/main/ipc/worktrees-create-label-only-first-work.test.tssrc/main/ipc/worktrees-create-metadata-persistence.test.tssrc/main/runtime/runtime-local-worktree-create.test-fixture.tssrc/main/runtime/runtime-local-worktree-create.test.tssrc/renderer/src/components/native-chat/StructuredChatPaneMenuItems.tsxsrc/renderer/src/components/native-chat/use-native-chat-context-menu.tsx
Files with no reviewable changes: 1-
- src/main/ipc/worktrees-create-metadata-persistence.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.
-
|
Superseded by #34072, which landed the same max-lines splits on main. |
ELI5
Three files grew past the repository's line limit, which turned main's lint red. This moves a self-contained piece out of each file. Nothing behaves differently.
What Changed
use-native-chat-context-menu.tsx(403 lines, cap 400): theStructuredChatPaneMenuItemscomponent moves toStructuredChatPaneMenuItems.tsx, next toNativeChatPaneMenuItems.tsx. Its prop types are now written out instead of picked from the hook's args type.worktrees-create-metadata-persistence.test.ts(829, cap 800): the "desktop label-only creation through first work" describe moves toworktrees-create-label-only-first-work.test.ts. It brings its own copy of the file'svi.mockblock, as siblingworktrees-*.test.tsfiles already do.runtime-local-worktree-create.test.ts(844, cap 800): thecreateWorktreehelper, which runs the real runtime create against a fake store, moves intoruntime-local-worktree-create.test-fixture.tsasruntimeLocalWorktreeCreator, along with its default sparse preset. Thevi.mocks and the hoisted mocks stay in the test file.There's no behaviour change and no lint-disable comment. The one existing
SAFETYcast moved with its helper.Why
Main's lint gate fails on max-lines for these three files (from #31679 and #32919), which blocks every PR.
Linked Issue
N/A, main lint fix. No issue.
Visual Proof
N/A. This only moves code; no UI changes.
Testing
oxlint is clean on all six files, and
pnpm tcpasses.The moved and affected tests pass: both worktree-create IPC files,
runtime-local-worktree-create.test.ts(50 tests), and the four native-chat context-menu test files.In
runtime-local-worktree-create.test.ts, "creates and renames a creature branch for 認証を修正" takes 19-23s under load on both origin/main and this branch, because itsvi.importActualcold-transforms the real module inside the test. In one run alongsidepnpm tcit hit 30s. That's pre-existing and unrelated to this move.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Agent skill upstream boundary
Notes
Pure move, so there's no platform, SSH, mobile or compatibility impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)