Skip to content

Drag phrases through the native command queue - #19

Merged
datashaman merged 1 commit into
mainfrom
agent/issue-14-native-drag
Aug 10, 2026
Merged

datashaman merged 1 commit into
mainfrom
agent/issue-14-native-drag

Conversation

@datashaman

Copy link
Copy Markdown
Owner

What changed

  • validate phrase.dragStart, phrase.move, and phrase.dragEnd envelopes, stable phrase IDs, normalized coordinates, message IDs, and payload limits
  • add a bounded thread-safe native command queue with per-phrase move coalescing, discrete-command barriers, reserved discrete capacity, and explicit pressure rejection
  • ensure the high-resolution engine consumer never waits on message-thread queue work
  • make the native world authoritative for drag lifecycle, radius-aware clamping, selected state, reconnect cleanup, and autonomous-motion suppression during manipulation
  • add Pixi pointer capture, optimistic pointer following, selected-state feedback, cancellation handling, and smooth reconciliation to accepted native snapshots
  • expose queue depth, maximum depth, coalescing, rejection, and pressure diagnostics
  • update the README for the implemented direct-manipulation slice

Impact

Every rendered phrase can now be dragged directly without moving musical scheduling into the WebView. High-frequency pointer input may discard stale intermediate movement, while drag lifecycle, transport, MIDI, and app commands retain discrete ordering and are never silently dropped.

Validation

  • ./scripts/verify.sh
  • 11 UI tests passed
  • Debug CTest: 2/2 passed
  • Release CTest: 2/2 passed
  • ten-minute deterministic stress run with 99,800 drag moves, 72,000 physics steps, and 15,614 MIDI messages
  • zero late MIDI events, phase error, timestamp error, or physics catch-up caps
  • packaged maximized-window rendering inspected without leaving the app running

Manual check

The final pointer feel and resize behavior should be checked manually in a maximized packaged window. Automated verification intentionally avoids foreground activation and system-wide mouse injection so it does not disrupt the active desktop.

Closes #14

@datashaman
datashaman marked this pull request as ready for review August 10, 2026 12:52
@datashaman
datashaman merged commit 3fb0e53 into main Aug 10, 2026
1 check passed
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.

Drag phrases through the native command queue

1 participant