@kl3m3n
My setup is an RP2040 target (running LWIP), talking to an Android tablet (not sure brand/flavour, don't have it to hand right now). I do not have autoconnect enabled.
I've observed that if the connection is interrupted abruptly (e.g. power loss to the target), the GUI doesn't react at all, even when interacting with UI elements - at least, not in any meaningful timeframe (tens ot seconds - I haven't tried waiting longer).
However I did notice something that I'll need to test further to more accurately describe: after leaving things connected overnight, when next I looked the GUI was either already displaying a 'lost connection' message box, or displayed one after I pressed a Button element. (Sorry, can't remember now exactly whch case it was, will need to re-test.)
In any case, after dismissing the message box, the GUI remained in place (i.e. didn't revert to the menu screen or offer to reconnect). Further interaction with the UI produced no reaction.
(And while I think of it: I can't see a way to return to the main menu screen from a UI page, other than having the target issue @quitapp in response to a button press - which is great, but only works if the target is connected and responsive. The rest of the time I have to actually switch away from the app altogether and relaunch it.)
I see that @ping allows the target to confirm presence of the GUI - perhaps a command can be added that activates an equivalent mechanism from the GUI. Or configuring TCP keepalive (including timing) at the GUI end of the connection.
I'll do some more testing and try to provide further details.
Thanks