Repository navigation
fix(agent): preserve recorded cursor visibility - #1075
EtienneLescot merged 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to Cursor visibility changes are retained in track output, and legacy samples remain visible by default. No actionable merge-blocking risk was identified. Pre-merge checks |
|
EtienneLescot
left a comment
There was a problem hiding this comment.
Reviewed: visibility changes kept as compression anchors, backward compatible with older sidecars. Thanks @satwiksharma01!
Summary
getCursorTrackloses the recorded cursor's visibility flag, and compresses a stationary hide/show interval down to its endpoints. For example, a pointer that is visible at 0s, hidden at 0.5s and visible again at 1s is returned as two ordinary visible points. Hidden clicks likewise arrive without a hidden marker, so the AI editor cannot distinguish them from visible activity.Preserve visibility changes as mandatory compression anchors and emit
visible:falseon hidden points. Missing visibility in older sidecars continues to mean visible. The tool's returned time-base description and architecture documentation explain this compact contract.Related issue
Related to #725 for cursor visibility context. This is a separate agent telemetry fix; it does not claim to replace the recording/rendering correction already merged in #731.
Type of change
Release impact
Desktop impact
Screenshots / video
No UI changes; regression tests cover the actual tool JSON payload.
Testing
getCursorTrackJSON propagation. Three failed against the original code; all 140 targeted cursor/tool tests pass with the fix.Validated with pinned Node 22.22.1 and npm 10.9.4. AI assistance was used. This changes the agent's observation payload, not capture or rendering behavior.
Summary by CodeRabbit