Skip to content

fix(cli): reset Status widget scroll region after Ctrl+L clear screen#240

Merged
xinhuagu merged 1 commit into
mainfrom
fix/ctrl-l-cursor-position
Mar 13, 2026
Merged

fix(cli): reset Status widget scroll region after Ctrl+L clear screen#240
xinhuagu merged 1 commit into
mainfrom
fix/ctrl-l-cursor-position

Conversation

@xinhuagu

Copy link
Copy Markdown
Owner

Summary

  • After Ctrl+L clear screen, the prompt cursor appeared at wrong position and status panel rendered garbled
  • Root cause: JLine's Status widget retained stale scroll region state after CLEAR_SCREEN
  • Fix: call promptStatus.reset() after clear so the widget recalculates from fresh screen state

Test plan

  • All CLI tests pass
  • Manual: press Ctrl+L, verify prompt and status panel render correctly

🤖 Generated with Claude Code

After CLEAR_SCREEN, JLine's Status widget retained stale scroll region
state, causing the prompt cursor to appear at a wrong position and the
status panel to render garbled. Call promptStatus.reset() after clear
so the widget recalculates from the fresh screen state.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@coderabbitai

coderabbitai Bot commented Mar 13, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@xinhuagu has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 6 minutes and 19 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e0897f96-b036-4121-a0dd-265952beae08

📥 Commits

Reviewing files that changed from the base of the PR and between a250beb and a1ecd41.

📒 Files selected for processing (1)
  • aceclaw-cli/src/main/java/dev/aceclaw/cli/TerminalRepl.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/ctrl-l-cursor-position
📝 Coding Plan
  • Generate coding plan for human review comments

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@xinhuagu xinhuagu merged commit ec47e79 into main Mar 13, 2026
4 checks passed
@xinhuagu xinhuagu deleted the fix/ctrl-l-cursor-position branch March 13, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant