Skip to content

fix(terminal): stop fragmenting Claude chat words - #104

Merged
cvsloane merged 3 commits into
mainfrom
refactor/frontend-command-center
Jul 22, 2026
Merged

cvsloane merged 3 commits into
mainfrom
refactor/frontend-command-center

Conversation

@cvsloane

@cvsloane cvsloane commented Jul 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • wrap Claude chat transcript lines at whitespace instead of hard character boundaries
  • preserve exact copied text by retaining boundary whitespace
  • keep character splitting only as the fallback for genuinely unbroken tokens
  • record the corrected diagnostic lesson and W1-R6 rollout receipt

Root cause

The reported two-character artifacts were on the custom Claude chat history overlay, not xterm. Its estimated-column formatter split words such as report into repor / t, making the suffix look like a changing artifact at the left edge while copied text remained correct.

Verification

  • red/green formatter regression: 3/3 pass
  • affected Claude chat journey: 1 pass, non-target desktop project skipped
  • dashboard typecheck pass
  • dashboard production build pass
  • fresh adversarial re-review: PASS, no critical or warning findings

Production painted-surface verification will follow the automatic Coolify deployment.

Summary by CodeRabbit

  • New Features

    • Terminal transcript lines now wrap at word boundaries when a display width is specified, improving readability while preserving all original text.
  • Bug Fixes

    • Fixed intermittent visual artifacts in terminal scrollback.
    • Improved rendering when navigating wrapped content across different viewport sizes.
    • Ensured terminal rows are correctly restored during repeated scrolling.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@cvsloane, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 52 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e5ed3072-b6c9-4c6a-869e-c251ec22f2e5

📥 Commits

Reviewing files that changed from the base of the PR and between bb3c6f1 and 7eda690.

📒 Files selected for processing (5)
  • apps/dashboard/src/components/terminal/transcriptFormatter.test.ts
  • apps/dashboard/src/components/terminal/transcriptFormatter.ts
  • tasks/2026-07-22-android-terminal-daily-driver-log.md
  • tasks/2026-07-22-android-terminal-daily-driver-metrics.jsonl
  • tasks/2026-07-22-android-terminal-daily-driver-status.md
📝 Walkthrough

Walkthrough

Updates terminal transcript wrapping to break at word boundaries, adds coverage for content preservation, and records W1-R6 renderer investigation, validation, rollout, and diagnostic guidance.

Changes

Transcript wrapping

Layer / File(s) Summary
Word-aware transcript wrapping
apps/dashboard/src/components/terminal/transcriptFormatter.ts, apps/dashboard/src/components/terminal/transcriptFormatter.test.ts
wrapDisplayLine wraps constrained text at whitespace boundaries with fixed-width fallback behavior, and tests verify expected segments and content preservation.

W1-R6 renderer records

Layer / File(s) Summary
Validation and rollout records
tasks/2026-07-22-android-terminal-daily-driver-log.md, tasks/2026-07-22-android-terminal-daily-driver-metrics.jsonl, tasks/2026-07-22-android-terminal-daily-driver-status.md
Daily-driver records document the stale-DOM-row diagnosis, W1-R6 validation, CI correction, merge, deployment, and runtime checks.
Renderer diagnostic guidance
tasks/lessons.md
Rendering guidance distinguishes layout defects from painted-surface defects and requires real-path visual verification.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: switching terminal transcript wrapping to avoid splitting Claude chat words.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch refactor/frontend-command-center

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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/dashboard/src/components/terminal/transcriptFormatter.ts`:
- Around line 149-154: Update the segment-boundary scan in the transcript
formatting logic to include candidate === start and handle a whitespace
delimiter at that boundary separately, consuming it when no later delimiter is
available so words are not split. Add a regression test for wrapping “word word”
at width 4, asserting the exact resulting content.

In `@tasks/2026-07-22-android-terminal-daily-driver-log.md`:
- Line 31: Update the final sentence in the daily driver log to use the
canonical lowercase “agentd” spelling, while preserving the rest of the entry
unchanged.

In `@tasks/2026-07-22-android-terminal-daily-driver-status.md`:
- Line 31: Keep renderer rollout status separate from painted-surface
acceptance: in tasks/2026-07-22-android-terminal-daily-driver-status.md lines
31-31, replace “defect fixed” with wording that the candidate fix is deployed
and painted-surface verification is pending; in
tasks/2026-07-22-android-terminal-daily-driver-metrics.jsonl lines 37-38, limit
pass statuses to implementation/deployment and mark root-cause confirmation or
live visual verification as pending.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: da792519-8fe7-4fd8-b743-e529a72183b6

📥 Commits

Reviewing files that changed from the base of the PR and between bfbb454 and bb3c6f1.

📒 Files selected for processing (6)
  • apps/dashboard/src/components/terminal/transcriptFormatter.test.ts
  • apps/dashboard/src/components/terminal/transcriptFormatter.ts
  • tasks/2026-07-22-android-terminal-daily-driver-log.md
  • tasks/2026-07-22-android-terminal-daily-driver-metrics.jsonl
  • tasks/2026-07-22-android-terminal-daily-driver-status.md
  • tasks/lessons.md

@cvsloane
cvsloane merged commit 0a0ac02 into main Jul 22, 2026
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