fix(stdlib): clock pending Escape with escapeCodeTimeout - #9639
fix(stdlib): clock pending Escape with escapeCodeTimeout#9639proggeramlug wants to merge 1 commit into
Conversation
Hold incomplete ANSI escape prefixes against an explicit 500 ms deadline registered with the event pump. Unrelated loop turns no longer flush early, idle waits no longer flush late, and completing bytes cancel the one-shot.\n\nCover bare Escape under idle and interval-driven schedules plus split and complete arrow sequences on a real PTY.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (9)
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughChangesReadline escape timeout
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk: ⚪ Minimal · up to The readline escape timeout implementation and its runtime wake integration are ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Description checkExplanation The description explains the change, lists the implementation scope, identifies issue Full details: Linked Issues checkExplanation The implementation satisfies issue Full details: Docstring CoverageExplanation Docstring coverage is 57.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 35 functions across 8 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 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 |
|
Landed via merge train #9650 (rebase-merge, authorship preserved). |
Summary
PENDING_ESCAPEflushing with a 500 ms deadlineVerification
cargo fmt --all -- --checkcargo test -p perry-stdlib readline:: -- --nocapture(22 passed)cargo test -p perry-runtime event_pump::tests -- --nocapture(6 passed)cargo test -p perry --test issue_9593_readline_escape_timeout -- --nocapture(1 passed; all four PTY scenarios)cargo clippy -p perry-runtime -p perry-stdlib --lib --no-deps(passed with pre-existing warnings)Fixes #9593
Summary by CodeRabbit