Studio can not attach itself to terminal session EHLLAPI

Alexandru,
Try to save and reuse the initial connection like here:

There are also pointers and sample about managing unstable Terminal Connections here: https://go.uipath.com/component/ehll-recoverable-terminal-session-and-connection