Repository navigation
fix: show named Node services in Live Ports - #19131
ParableTyler wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthrough
Merge Risk: ⚪ Minimal · up to The change updates macOS Node Live Ports labels while retaining fallback behavior for unsupported titles. No current merge-blocking risk is identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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
- Prefer short Node titles as Live Ports labels —
enrichPortnow projectsport.commandLineintoprocessNamefor genericnodelisteners when it is a single, identifier-shaped token ([a-zA-Z0-9][a-zA-Z0-9._-]*, ≤64 chars), while rejecting paths, arguments, whitespace/control characters, and the reservedElectronstop-button sentinel. - Regression coverage — a new 22-case
it.eachtable asserts exact outputprocessNamefor title adoption, sentinel preservation, length/charset rejection, and input immutability.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

ELI5
When several Node services are running, Live Ports should say
web-appordocsinstead of calling every servicenode. This uses the name the service already gives itself.What Changed
nodelisteners.Electronlabel.Why
On macOS,
lsofreportsnodeeven whennode --title=web-appchanges the title returned byps. Orca already collects that title ascommandLine, but drops it from the displayed label. This fixes the projection without parsing or displaying arbitrary command lines.Linked Issue
Fixes #19129
Visual Proof
Actual Orca Electron builds, three real Node HTTP listeners, isolated macOS workspace. Same ports before/after; the third server deliberately has no title. Captured through CDP with all windows hidden.
Testing
Passed with
ORCA_BACKGROUND_LAUNCH=1:src/main/portsandsrc/main/ssh/ssh-port-scanner.test.ts— 157 tests, 10 files.pnpm typecheckpnpm run check:code-quality:changed -- origin/mainpnpm run build:electron-viteand the--mode e2evariant.Linux, Windows, and live SSH were not manually tested. Full-repository lint/test and the native packaging build are left to CI.
AI Disclosure
Implementation, tests, local verification, and self-review used OpenAI Codex via pi (model ID:
gpt-6-astra).Review
Electronstop-button sentinel and existing PID/ownership routing.Agent skill upstream boundary
Notes
Only service labels change. Titles must be 1–64 ASCII letters/digits/dots/underscores/hyphens and start with a letter or digit.
Author: @ParableTyler. X/Twitter: @TylerMills.
Checklist
pnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass — local checks above; full CI pending