handle_start_recording writes the dataset directory (meta/info.json etc.) as soon as recording starts, before the first episode is actually captured. If something fails right away — camera drop, arm disconnect — before any episode gets saved, that directory is left on disk. It shows up in the local dataset list and picker even though nothing was actually recorded.
Should clean up the dataset directory when a recording fails with 0 saved episodes (and it wasn't resuming an existing dataset — don't want to touch a dataset that already had data in it).
handle_start_recordingwrites the dataset directory (meta/info.json etc.) as soon as recording starts, before the first episode is actually captured. If something fails right away — camera drop, arm disconnect — before any episode gets saved, that directory is left on disk. It shows up in the local dataset list and picker even though nothing was actually recorded.Should clean up the dataset directory when a recording fails with 0 saved episodes (and it wasn't resuming an existing dataset — don't want to touch a dataset that already had data in it).