Skip to content

Fully repaint inline viewports after history overlap - #37335

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5a8a480e2fc50c801561de6a4598a3ab8c12b8d6
Aug 7, 2026
Merged

Fully repaint inline viewports after history overlap#37335
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5a8a480e2fc50c801561de6a4598a3ab8c12b8d6

Conversation

@copyberry

@copyberry copyberry Bot commented Aug 7, 2026

Copy link
Copy Markdown

Fully repaint inline viewports after history overlap

Why

During inline-mode resize reflow, replayed history can overlap a zero- or
one-row history region and leave stale terminal characters visible in the
composer. Resetting the previous render buffer is insufficient because
default-style spaces may still compare equal and be skipped.

What changed

  • Mark every cell in an invalidated viewport for unconditional repainting.
  • Invalidate the viewport after flushing pending history when history can
    overlap it.

Testing

Add regression coverage for repainting spaces over stale cells and a manual
tmux resize smoke test for preserving visible multiline draft text.

## Why

During inline-mode resize reflow, replayed history can overlap a zero- or
one-row history region and leave stale terminal characters visible in the
composer. Resetting the previous render buffer is insufficient because
default-style spaces may still compare equal and be skipped.

## What changed

- Mark every cell in an invalidated viewport for unconditional repainting.
- Invalidate the viewport after flushing pending history when history can
  overlap it.

## Testing

Add regression coverage for repainting spaces over stale cells and a manual
`tmux` resize smoke test for preserving visible multiline draft text.

GitOrigin-RevId: 5a8a480e2fc50c801561de6a4598a3ab8c12b8d6
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/5a8a480e2fc50c801561de6a4598a3ab8c12b8d6 branch from af5b573 to 303a292 Compare August 7, 2026 00:05
@copyberry
copyberry Bot merged commit 303a292 into main Aug 7, 2026
30 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/5a8a480e2fc50c801561de6a4598a3ab8c12b8d6 branch August 7, 2026 00:06
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant