continue-custom/extensions
Jakub Błach 35f2d9de0b
fix: recover Continue process after unexpected exceptions (#7463)
Solves CON-3587
Solves #7018
Solves #7121
Solves #5505
Solves #3981, and possibly other Stream closed-like errors

## Main change

Now, if some exception bubbles up at any stage (whether it's read, write, anything else within `processScope`), we catch it via `CoroutineExceptionHandler` and we restart the process + back-off. Type of exception is not important / now it's more like black-box approach.

This simplifies things quite a bit, since we now have only single piece of code for process recovery.

## Detailed changes

* The process now recovers from exceptions globally, without specifying the type of exception (more of a black-box approach).
* Remove `CoreMessengerManager`, since process recovery is now implemented in `ContinueProcessHandler`.
* Add a back-off utility for calculating delays between process recovery retries (just a cleanup).
* Restore `ContinuePluginService.dispose()` (because `Disposable` was accidentally removed during the last changes in the Next Edit - that's not critical, but it was causing exceptions when closing the application/during plugin disposal).
* Remove the artificial delay between reading messages (from now on, blocking happens directly on `readLine`).
2025-08-29 15:37:07 -07:00
..
cli chore: format 2025-08-29 08:24:55 -07:00
intellij fix: recover Continue process after unexpected exceptions (#7463) 2025-08-29 15:37:07 -07:00
vscode feat: Add Tetrate Agent Router Service as a provider (#7136) 2025-08-29 13:11:17 -07:00