Skip to content

Fix vterm alt-screen capture and scroll edge cases#202

Merged
andyrewlee merged 5 commits intomainfrom
droid-spec-fix
Mar 18, 2026
Merged

Fix vterm alt-screen capture and scroll edge cases#202
andyrewlee merged 5 commits intomainfrom
droid-spec-fix

Conversation

@andyrewlee
Copy link
Owner

@andyrewlee andyrewlee commented Mar 18, 2026

Amp-Thread-ID: https://ampcode.com/threads/T-019d01cc-daff-756a-8c08-83207b167180

Summary

Describe the change and intended behavior.

Quality Checklist

  • Ran make devcheck locally.
  • Ran make lint-strict-new locally for changed code.
  • If UI/rendering changed, ran make harness-presets.
  • If tmux/e2e changed, ran go test ./internal/tmux ./internal/e2e.

Open with Devin

devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

andyrewlee and others added 3 commits March 18, 2026 11:53
dropTrackedAltScreenCapture zeroed captureLen and tracked but not
endOffset. When dedupScrollUpTrailing found no overlap, the stale
endOffset was inherited by the next capture, causing captureStart
miscalculation and scrollback corruption on subsequent cycles.

Reset endOffset to 0 after dedup in the drop path. Also document the
known trailing-growth limitation in dedupScrollUpTrailing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@andyrewlee andyrewlee merged commit 6bac489 into main Mar 18, 2026
3 checks passed
@andyrewlee andyrewlee deleted the droid-spec-fix branch March 18, 2026 20:05
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