fix(recording): skip the swipe for a zero-pass scroll

Merged
TH
2d ago
+26-12

Summary

Recording and deferred outcome handling now share the same predicate for determining whether a scroll dispatched a gesture.

Before / after

When scroll down --until 'text="Done"' finds Done on the first capture, the overlay previously drew one swipe and now draws none. When the scroll takes one pass, the overlay still draws one swipe with the same coordinates and timing.

Validation

At cb5800d9d81fec33443ef0b4636358beca34abd3, all 20 tests passed in packages/daemon/src/core/__tests__/recording-gestures.test.ts. CI checks are pending.

Closes #5227


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.