ATC-82 Screen follows the cursor through a repeated character #74

Merged
nelson merged 1 commit from ATC-82-repeat-tracking into main 2026-11-13 15:06:37 -08:00
Owner

Work package: https://openproject.romaine.life/wp/ATC-82 (found through https://openproject.romaine.life/wp/TMUX-211)

Fixes a line showing twice on screen, as in the audit-terminal-app window at 2:58 PM. Bubble Tea's renderer writes a run of one character as REP (CSI n b, "write the last character n more times"). The screen tracks the cursor so it can write a clearing beside an avatar as blanks, but it ignored REP. So it blanked from where the repeat started, 6 cells past the row's end: the row wrapped, the reply's next two lines landed a row lower, and the old line stayed on screen above. at-claude's recording of that window shows exactly those bytes.

REP now moves the tracked cursor as writing the character that many times would. Nothing else changes.

Tests: TestScreenFollowsRepeatedCharacters (a repeat then a clearing beside an avatar, one reaching the row's end, a wide character repeated) fails on main and passes here; the full suite passes.

Work package: https://openproject.romaine.life/wp/ATC-82 (found through https://openproject.romaine.life/wp/TMUX-211) Fixes a line showing twice on screen, as in the audit-terminal-app window at 2:58 PM. Bubble Tea's renderer writes a run of one character as REP (`CSI n b`, "write the last character n more times"). The screen tracks the cursor so it can write a clearing beside an avatar as blanks, but it ignored REP. So it blanked from where the repeat started, 6 cells past the row's end: the row wrapped, the reply's next two lines landed a row lower, and the old line stayed on screen above. at-claude's recording of that window shows exactly those bytes. REP now moves the tracked cursor as writing the character that many times would. Nothing else changes. Tests: `TestScreenFollowsRepeatedCharacters` (a repeat then a clearing beside an avatar, one reaching the row's end, a wide character repeated) fails on main and passes here; the full suite passes.
ATC-82 Screen follows the cursor through a repeated character
All checks were successful
CI / build (pull_request) Successful in 4m0s
CI / pcs (pull_request) Has been skipped
CI / prune-releases (pull_request) Has been skipped
CI / home-sync (pull_request) Successful in 0s
c0332131e1
Bubble Tea's renderer writes runs of one character as REP (CSI n b). The
screen's cursor tracking ignored it, so a clearing after a repeat beside
an avatar was written as blanks from where the repeat started: past the
row's end, wrapping and pushing the lines below down a row, which left a
stale copy of a line on screen (TMUX-211). REP now moves the cursor as
writing the character that many times would.
nelson merged commit 5ade7165d3 into main 2026-11-13 15:06:37 -08:00
nelson deleted branch ATC-82-repeat-tracking 2026-11-13 15:06:38 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/at-claude!74
No description provided.