Skip to content

perf(web): dedupe terminal mouse motion reports - #7845

Merged
maria-rcks merged 2 commits into
mainfrom
perf/opencode-v2-terminal
Aug 21, 2026
Merged

maria-rcks merged 2 commits into
mainfrom
perf/opencode-v2-terminal

fix(web): reset terminal motion dedupe state

9782d0f
Select commit
Loading
Failed to load commit list.
MacroscopeApp / Macroscope - Correctness Check succeeded Aug 21, 2026 in 52s

No issues identified (6 code objects reviewed).

• Merge Base: c3e3709
• Head: 9782d0f

Details

✅ File Path Comments Posted Reason
➖ apps/web/src/terminal/ghostty/surface.test.ts Excluded by default ignore patterns
✅ apps/web/src/terminal/ghostty/surface.ts 0

Filtered Issues Details

apps/web/src/terminal/ghostty/surface.ts
  • line 741: write only compares the DEC 1003 state before and after the entire data chunk. If one chunk disables and then re-enables DEC 1003 (so the final boolean equals the cached value), synchronizeMouseTrackingState() leaves lastMouseMotionData intact. The first motion in the new tracking session is then dropped when it encodes identically to the previous session's last packet, so the terminal application can miss a legitimate mouse event. The baseline must be invalidated when either transition occurs, not only when the final state differs. [ Already posted ]