Make upstream startup failures actionable - #348
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (15)
📝 WalkthroughWalkthroughUpstream startup failures now capture sanitized, bounded diagnostics and exit metadata. CLI output, doctor reports, and MCP warnings expose structured causes and remediation. Doctor also recognizes ChangesUpstream startup diagnostics
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
Poem
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Closes #347.
What changed
miftah test-profileprint the cause, exit metadata, remediation, and a shell-safe retry commandmiftah doctoroutputtest-profilecommanduvx --with ...package invocations correctly in doctor pinning checksRoot cause
Miftah previously discarded the useful child-process failure context at the startup boundary. Users received only
UPSTREAM_INIT_FAILED, even when the upstream had already explained the failure on stderr or exited with a meaningful status.User impact
Users can now diagnose missing runtimes, incompatible dependencies, and upstream command failures directly, without exposing raw unbounded stderr or configured secrets in serve-mode warnings.
Validation
npm test— 1,827 passed, 33 skippednpm run lintnpm run typechecknpm run buildSummary by CodeRabbit
New Features
uvx, including--fromoptions.Bug Fixes