refactor(tui): prompt deep-module PR 6 — façade reduction + verification#230
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 17 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: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (13)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
22b0f07 to
993deb7
Compare
38ca9ce to
395ee69
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Ran the CodeRabbit CLI locally (v0.7.0, |
Final part of the TUI prompt deep-module refactor (plan: docs/superpowers/plans/2026-07-19-tui-prompt-deep-module-refactor.md; stacked on #229; series: #218 #219 #220 #228 #229).
Task 12 — reduce
CustomPromptSessionto a compatibility façadeprompting/config.py: frozenPromptConfig+PromptProviders(plusBgTaskCounts, re-imported byprompt.pyso identity is preserved);__init__keeps its exact keyword signature.prompting/keybindings.py: the entire key-binding block asbuild_prompt_key_bindings(controller)over aPromptControllertyping.Protocol; every binding/filter/eager flag preserved verbatim.prompting/completion/menus.py:SlashCommandMenuControl/LocalFileMentionMenuControland width helpers; layout installation stays in the façade.input_text,input_state,clear_input,build_user_input,serialize_for_history) replace all seven external reach-ins into_session.default_buffer/_get_placeholder_manager()fromui/shell/__init__.pyandvisualize/_interactive.py; allreportPrivateUsageignores at those sites removed.prompt.py3,182 lines (from 4,111), 7 classes, 27 module functions. Acceptance checks: no filesystem/Git subprocess implementation, no history JSONL implementation, no delegate rendering duplication, no private prompt_toolkit method assignment — all verified by grep.Task 13 — verification and documentation
test_prompt_height_budget.py(+112 parametrized cases): combining marks, emoji, CJK, RTL, wide key labels, ASCII glyph mode — rows/columns measured in terminal cells and scenes stay within budget.docs/en/customization/architecture.md: new "Shell prompt deep modules" section — façade role, per-module ownership, one-frame snapshot flow, state-reducer events, generation-owned workspace/Git snapshot publish, and the compatibility policy for underscore re-exports.Verification
make check-pythinker-code: all checks passed (ruff, strict pyright, ty).tests_e2e): 65 passed, 4 skipped.test_shell_cancel_running_command_kills_process_and_recovers,test_mid_turn_queued_input_renders_once_and_executes_once) — verified to fail identically on untouchedorigin/mainon this machine (known local PTY-flake state), so CI is the arbiter for them.