Repository navigation
Conversation
Packaged-binary CLI-form serve skipped CLI cross-flag guards and silently ignored pairing-flag typos, so a misspelled --no-pairing left pairing enabled. Share the guards, reject security-flag typos by edit distance, and stop scanning past --. Fixes stablyai#13006
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan includes up to 10 reviews per rolling hour; 5 remain after this review. 📝 WalkthroughWalkthroughServe-option parsing now resides in Merge Risk: ⚪ Minimal · up to The PR tightens serve-flag validation and keeps in-process behavior aligned with the CLI; no concrete user or production risk requiring a merge hold is identified, so it is merge-ready after normal checks. 🚥 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.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 68d35a77-3243-4191-af75-e838ff74585b
📒 Files selected for processing (7)
src/cli/handlers/core.tssrc/cli/serve-electron-flag-parity.test.tssrc/main/index.tssrc/main/startup/serve-options.test.tssrc/main/startup/serve-options.tssrc/shared/serve-option-guards.test.tssrc/shared/serve-option-guards.ts
|
Closing as superseded by merged #17683. Current main shares serve option validation across the CLI and in-process entry point, covering incompatible pairing/recipe flags, pairing-flag typos, and the -- terminator. The focused serve validation and Electron flag-parity suites pass. Verified against main |
Summary
getServeOptionstosrc/main/startup/serve-options.tsand share cross-flag guards withorca serveviasrc/shared/serve-option-guards.ts.--no-pairing+--mobile-pairing, recipe-json without pairing / without--project-root) on the in-process path the same way the CLI does.--no-pairng,--no-paring) so they cannot silently keep pairing on; stop scanning after--.Fixes #13006
Test plan
getServeOptionGuardError/getServeFlagTypoErrorgetServeOptionsincluding CLI-form normalize + typo path.memory/)