Better way to confirm a task is done on Z1?

I have not tried this, but there is a CaptureComplete API call.

This might also be relevant.

There’s a long thread here with examples to send the raw USB hexcodes to the camera with ptpcam -R

RICOH THETA API Over USB Cable - (Z1, V, S, SC models)

At the time we were testing the USB API, we were just trying to get it to work. However, if I were to build something today, I would try to experiment with something like 0x5002 FunctionalMode or 0xD808 CaptureStatus to see if I could get better results.