fix(windows): fail closed for shell-backed stdio launches - #219
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 22 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
📝 WalkthroughWalkthroughWindows STDIO launches now resolve only direct ChangesWindows STDIO launch hardening
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant InitOrOnboarding
participant buildPresetConfig
participant UpstreamProcessManager
participant resolveWindowsStdioCommand
participant StdioClientTransport
InitOrOnboarding->>buildPresetConfig: build selected preset
buildPresetConfig-->>InitOrOnboarding: config or Windows preset rejection
UpstreamProcessManager->>resolveWindowsStdioCommand: resolve configured STDIO command
resolveWindowsStdioCommand-->>UpstreamProcessManager: direct executable or startup failure
UpstreamProcessManager->>StdioClientTransport: start with resolved command and args
Possibly related PRs
Poem
Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/cli/doctor.ts`:
- Around line 132-135: Update environmentForTarget to obtain and merge the same
runtime-resolved environment used when launching the executable, rather than
merging raw upstream and profile env maps. Reuse the existing
environment-resolution path and ensure executable preflight sees expanded
values, including referenced Path entries; add a regression covering an expanded
Windows Path.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: b3df4c1e-3ea9-49c6-9f46-1c735367514e
📒 Files selected for processing (25)
CHANGELOG.mdREADME.mddocs/cli.mddocs/presets-and-clients.mddocs/security.mdsrc/cli/doctor.tssrc/cli/init.tssrc/config/presets.tssrc/console/console-application-service.tssrc/secrets/executable-resolver.tssrc/setup/client-entry-import.tssrc/upstream/upstream-process-manager.tssrc/upstream/windows-stdio-command.tstests/client-entry-import.test.tstests/console-application-service.test.tstests/console-dashboard-application-service.test.tstests/console-server.test.tstests/doctor.test.tstests/executable-resolver.test.tstests/init-command.test.tstests/preset-catalog.test.tstests/setup-command.test.tstests/upstream-manager.test.tstests/windows-stdio-command.test.tstests/windows-stdio-docs-contract.test.ts
Dismissed: CodeRabbit is rate-limited. Its sole inline thread is resolved and outdated on the current head; the correction is covered by focused tests and independent security review.
Closes #217
Summary
.exeor.compaths before the MCP SDK..cmd/.batshims, shebang-reinterpreted files, and npx-backed Windows presets rather than allowing acmd.exefallback.Validation
npm test(1,497 passed; 27 skipped)npm run test:core(410 passed; 22 skipped)npm run test:coverage(1,497 passed; 27 skipped; thresholds passed)npm run lint,npm run typecheck,npm run buildnpm run smoke:cli,npm run check:pack,npm run test:package(23 passed)Summary by CodeRabbit
New Features
.exeor.comexecutables.npx-based presets on Windows.Documentation