The bug was upstream, in the supervisor; the issue was that during a restart, the channel that broadcast status updates to the client would blink offline. If the 'starting' status got sent during that blink, the client would miss it and not detect startup correctly. The fix is to ensure the channel always broadcasts updates throughout the restart cycle.
QA Notes
As noted by @jonvanausdeln, this is 100% reproducible on Windows, so it should be easy to test the fix there.
Addresses https://github.com/posit-dev/positron/issues/5356; fixes restarts on R and re-enables the R console tests.
The bug was upstream, in the supervisor; the issue was that during a restart, the channel that broadcast status updates to the client would blink offline. If the 'starting' status got sent during that blink, the client would miss it and not detect startup correctly. The fix is to ensure the channel always broadcasts updates throughout the restart cycle.
QA Notes
As noted by @jonvanausdeln, this is 100% reproducible on Windows, so it should be easy to test the fix there.