Repository navigation
fix(ci): drop duplicate grab-annotations type and split chat subscription perf test - #36101
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 1 minute. View limit details
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. Comment |
[Low impact] The PR appears safe to merge; the type contract and test coverage are preserved. SummaryRemoves the duplicate
Reviews (1) · Last reviewed commit: "Merge branch 'main' into nwparker/ci-lin..." · Reviewed by Greptile |
ELI5
Two pull requests that each passed on their own were merged around the same time, and together they made the main branch fail its lint check twice. This puts both back within the rules without changing any behaviour.
What Changed
browser-page-types.tsdeclared the same grab-annotations type twice, because refactor(browser): move the grab hook type to its owner #36087 and fix(ci): resolve existing max-lines and command fixture violations #36096 both moved it there. The two copies are identical, so this deletes the second one.native-chat-subscriptions.performance.test.tsxwent over the 800-line limit for test files (833 lines) after Keep a chat's accepted model options in what it shows and sends #31208 crossed Optimize hidden chat subscriptions and tab projections #36047. The three model-selection performance tests (pick/read/overlay, status upstream work and continuity wakes) move unchanged into a new sibling file,structured-session-selection.performance.test.tsx. It brings the store mock, the status-feed mock and the cleanup those tests need. Unused imports are removed from the original file.Before: main fails Lint. After: both files pass lint and nothing changes for users.
Why
Deleting one of the identical copies is the only change that fixes the duplicate. For the test file, the selection-controller tests are a self-contained group with their own setup, so moving them was cleaner than squeezing lines or disabling the limit.
Linked Issue
N/A, this fixes main CI.
Visual Proof
N/A, no UI or behaviour change.
Testing
pnpm tcandpnpm run typecheck:cipass.Same test count before and after: the original file ran 8 tests; after the split, the two files run 5 and 3, all passing, each run on its own.
check:code-quality:changed, oxlint andcheck-test-file-runners.mjspass. The new file is picked up by a test runner.I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Flag-off: N/A, no flag.
User-risk: None. One type declaration is removed and tests are moved; no production code paths change.
Agent skill upstream boundary
Notes
No impact on security, platforms, SSH, mobile, compatibility or performance.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)