Repository navigation
fix(lint): merge duplicate type imports in the mobile RPC recording adapters - #20896
brennanb2025 wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe change consolidates duplicate type imports in Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This is a localized lint fix with no demonstrated runtime or user-impacting behavior change. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the problem, the change, the testing performed, and the absence of UI changes. However, it omits required template sections, including the linked issue, ELI5, explicit Why and What Changed headings, review and boundary confirmations, notes, and checklist items. Resolution Add the missing required template sections. Include a valid
✨ Finishing Touches📝 Generate docstrings
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 |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — lint-only merge of duplicate type imports in two mobile RPC recording adapters.
agent-history-mount-adapters.ts— collapsedOperationExposureandoperationModuleLoaderinto oneimport typefrom../operation-module-loader.push-registration-mount-adapters.ts— same merge.
operationModuleLoader appears only in typeof position (ReturnType<typeof operationModuleLoader>), so the type-only merged import resolves identically. Verified the gate: oxlint --config config/oxlint-code-quality-native-plugins.json over both files and the whole mobile tree (1803 files) exits 0 with zero warnings, so no other duplicate imports remain.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Closing as a duplicate of #20895, which carries the same import merge plus the golden re-record this PR was missing. Editing the two adapter modules shifts adapterSha256 on the goldens recorded through them, so the import merge alone fails 9 mobile recorder tests; #20895 re-records those 9 and bumps the pinned baseline. |

main's tip currently fails
pnpm run audit:code-quality:native— theEnforce focused code-quality pluginsstep of thestatic analysisCI gate — which blocks every open PR:Both adapters were added in #20702 with two separate
import typestatements pointing at the same module (../operation-module-loader) — one forOperationExposure, one foroperationModuleLoader.import(no-duplicates)flags the pair, and--deny-warningsturns it into a failing gate.This merges each pair into a single
import typestatement. Same module specifier, same bindings, same type-only import kind, so there is no semantic change — the siblingsettings-mount-adapters.tsis untouched because its two imports differ in kind (one value, one type), which the rule permits.Visual Proof
N/A — lint-only import merge, no runtime or UI behavior change.
Testing
oxlint --config config/oxlint-code-quality-native-plugins.json src config tests mobile --deny-warningsexits 0 on this branch; the identical command exits 1 with the two warnings above on main's tip.oxfmt --checkclean on both files.tscwas not run (mobile dependencies are not installed in this worktree). The change cannot affect types:operationModuleLoaderwas already imported from this exact specifier as a type-only binding, so the merged statement resolves identically.