[PR #14548] Refactor how connection restarting is handled #30152

Open
opened 2026-01-31 09:38:57 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/microsoft/terminal/pull/14548

State: closed
Merged: No


Admittedly, this is a lot of annoying plumbing.

We didn't love that a connection could transition back in the state diagram, from Closed -> Start. That felt wrong. To remedy this, we're going to allow the ControlCore to re-create connections, all on its own. This builds on a lot of work that was originally done for Process Model v2 (#5000), and was originally slated to be merged in #12938.

Basically, all the properties for a Connection are stashed already in a ConnectionState object. We're gonna take that, and stash the info in the ControlCore. When the control wants to restart the connection, it just uses that to rebuild a new one.

Cleanup from #14060

Closes #14327

**Original Pull Request:** https://github.com/microsoft/terminal/pull/14548 **State:** closed **Merged:** No --- Admittedly, this is a lot of annoying plumbing. We didn't love that a connection could transition back in the state diagram, from Closed -> Start. That felt wrong. To remedy this, we're going to allow the ControlCore to re-create connections, all on its own. This builds on a lot of work that was originally done for Process Model v2 (#5000), and was originally slated to be merged in #12938. Basically, all the properties for a Connection are stashed already in a `ConnectionState` object. We're gonna take that, and stash the info in the ControlCore. When the control wants to restart the connection, it just uses that to rebuild a new one. Cleanup from #14060 Closes #14327
claunia added the pull-request label 2026-01-31 09:38:57 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#30152