Repository navigation
refactor(terminal): split terminal-file-open-routing.ts back under the line limit - #32932
Conversation
… their own modules terminal-file-open-routing.ts went over the 300-line limit after #32706, failing every PR's lint. Move two self-contained pieces out, unchanged: the open-request turn (shared with click hit-testing) and opening a local HTML file in Orca's browser.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
ELI5
Main's lint has been failing. The file that opens terminal file links grew past the 300-line limit after #32706. This PR moves two self-contained pieces into their own files. Nothing changes for users.
What Changed
terminal-file-open-turn.tsholds the open-request turn:reserveDetectedFilePathOpenTurn, which supersedes earlier link opens. The click hit-testing now imports it from here, andopenDetectedFilePathuses it instead of its own inline counter (same behaviour: bump, then cancel pending line reveals).terminal-html-file-browser-open.tsholdsopenHtmlFileInBrowser, moved unchanged.terminal-file-open-routing.tsis back to about 283 counted lines. There is no re-export, no barrel and no max-lines disable.Why
oxlintmax-lines failed on origin/main (aeb0399) at 303 lines, so every PR's lint step was red. Moving these two pieces into named modules fixes it without changing behaviour.Linked Issue
N/A (main fix). #32320 builds on this.
Visual Proof
N/A. This is a pure refactor with no UI change.
Testing
pnpm teston all terminal-pane tests and the native-chat link-click testthe full static job locally, including typecheck
Codex review
I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Review
Agent skill upstream boundary
Notes
This is a pure move: no wire, platform or remote impact.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)