cmux-tui: simplify PTY error mapping - #11864
Conversation
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change refactors ChangesPTY error handling cleanup
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This change simplifies PTY error fallback handling without changing returned errors. No merge-blocking production risk remains. 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
Full details: Description checkExplanation The description explains what changed, why behavior remains unchanged, and how the change was verified. The missing checklist and review-trigger sections are non-critical for this small, non-UI refactor. Full details: Cmux Swift Blocking RuntimeExplanation PASS — The pull request does not introduce or materially expand a prohibited Swift blocking or timing primitive. The tip-to-base diff adds only the Rust Full details: Cmux Browser Automation Off-MainExplanation PASS. The PR changes only Full details: Cmux Expensive Synchronous LoadExplanation PASS: The pull-request range changes only Full details: Cmux Cache Substitution CorrectnessExplanation PASS: The pull request changes only Full details: Cmux No Hacky SleepsExplanation PASS: The PR changes only one Rust source file and replaces an existing Full details: Cmux Algorithmic ComplexityExplanation PASS. The PR changes only Full details: Cmux Swift ConcurrencyExplanation PASS. The committed diff changes only Full details: Cmux Swift `@Concurrent`Explanation PASS: The pull request changes only Rust code in Full details: Cmux Swift Package BoundariesExplanation PASS: The PR commits after the prior base commit change only
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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 |
|
All contributors have signed the CLA ✍️ ✅ |
7dcc0ab to
a832d20
Compare
a832d20 to
ccdad66
Compare
3812562 refactor(tui): centralize terminal input classification (manaflow-ai#11855) 7d0385f Axiom: failure rate and latency per third-party endpoint (Freestyle, Stack Auth, Stripe, ...) (manaflow-ai#11779) ed5e826 refactor(tui): share frontend focus target mapping (manaflow-ai#11861) 7fa300e Revert "Fix terminal text bleed during live window resize (manaflow-ai#11530)" (manaflow-ai#11887) bace77c perf(cmux-tui): avoid front-shifting layout nodes (manaflow-ai#11860) 9f8a74f cmux-tui: simplify PTY error mapping (manaflow-ai#11864) 2748329 refactor(cmux-tui): share stack row allocation (manaflow-ai#11867) e7223a5 coderouter: PostHog traces + exceptions keyed by the cmux user, request ids, health endpoint, Slack alerts, upstream header timeout (manaflow-ai#11798)
* refactor(cmux-tui): simplify operation error fallback * style(cmux-tui): apply rustfmt to error fallback
Summary
Verification
Summary by cubic
Replaces the equivalent
Option::map/unwrap_orchain in PTY error mapping withOption::map_or. It still returns the marked underlying error when available and the original error otherwise, so PTY failure behavior is unchanged.Written for commit ccdad66. Summary will update on new commits.
Summary by CodeRabbit