mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-24 18:26:11 +00:00
fd6aed87b7
Replace the relative-action anchor mechanism from "adding relative actions to sync engine" with one that detects fresh chunks through the public predict_action_chunk contract instead of introspecting the policy's private _action_queue. Drops set_hold/_hold_state in favour of a set_cached_state snapshot/restore, keeps select_action on the hot path (so the prediction- visualization path is unaffected), and refreshes the anchor every tick for policies that never chunk. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>