Under what circumstances does the IDE say "agent not running", yet it is?

I’ve fired up a new device a couple of days ago. It seems to be operating normally. The agent responds to HTTP requests and the device does what I’d expect. Yet, the IDE reports:

device online/agent not running

How is this possible?

It’s a bug; fairly low priority as actual operation is not affected, but it will get fixed.