The team deployed a fix for this and the device code should be working as expected with the Terminal now.