31 stone are available to the miner.

Only 30 are in the chest when the miner is marked for deconstruction by Auto Deconstruct.

The mining progress bar is empty regardless.

Unmarking the miner for deconstruction releases the last piece of stone.

Expected behavior would be that the last piece of stone would be released before the resource would indicate being depleted. This can obviously be worked around by having Auto Deconstruct wait a few ticks before marking the miner, but this would not fix the underlying bug.