Skip to content

fix: output HUD as plain text to prevent TUI rendering buffer collisions#72

Merged
ComBba merged 1 commit into
masterfrom
fix/plain-text-hud-no-ansi
Feb 25, 2026
Merged

fix: output HUD as plain text to prevent TUI rendering buffer collisions#72
ComBba merged 1 commit into
masterfrom
fix/plain-text-hud-no-ansi

Conversation

@ComBba

@ComBba ComBba commented Feb 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove all ANSI codes from HUD output (no more \x1b[2m/\x1b[22m dim wrapper)
  • HUD line is now pure plain text appended to output
  • Strip regex updated: pattern-based matching instead of ANSI code anchors

Root Cause

ANSI dim codes caused the TUI renderer to miscalculate text positions during the transition from streaming deltas to final text. Response text fragments appeared garbled within the HUD line (e.g., "Sisyphus can |", "clau neede-opus-4-6").

Test

  • 337 tests pass
  • Build + typecheck clean

ANSI dim codes (\x1b[2m/\x1b[22m) caused the TUI renderer to miscalculate
text positions, producing garbled output where response text fragments
mixed into the HUD line. Removing all ANSI codes from the HUD output
eliminates the rendering buffer collision.

HUD strip regex now uses pattern-based matching (pipe-separated percentage
and day window) instead of ANSI code anchors.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Feb 25, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@ComBba has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 24 minutes and 25 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.

📥 Commits

Reviewing files that changed from the base of the PR and between b077984 and 321516e.

📒 Files selected for processing (3)
  • src/plugin.ts
  • tests/build-usage-line.test.ts
  • tests/plugin-api-usage.test.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/plain-text-hud-no-ansi

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.

@ComBba ComBba merged commit 897bbc0 into master Feb 25, 2026
3 checks passed
@ComBba ComBba deleted the fix/plain-text-hud-no-ansi branch February 25, 2026 02:22
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