Code Health: follow ups from connection restarting #18810

Open
opened 2026-01-31 06:25:06 +00:00 by claunia · 0 comments
Owner

Originally created by @zadjii-msft on GitHub (Nov 3, 2022).

Originally assigned to: @zadjii-msft on GitHub.

From #14060. See also https://github.com/microsoft/terminal/pull/14060#pullrequestreview-1165989506

The control shouldn't be responsible for restarting the connection itself. It should request a new one from the app.

  • Move this code to the page, and bubble an event to request a new connection
  • Revert this
  • Investigate only clearing the buffer to scrollback, instead of inheritCursoring
Originally created by @zadjii-msft on GitHub (Nov 3, 2022). Originally assigned to: @zadjii-msft on GitHub. From #14060. See also https://github.com/microsoft/terminal/pull/14060#pullrequestreview-1165989506 The control shouldn't be responsible for restarting the connection itself. It should request a new one from the app. * [ ] Move [this code](https://github.com/sotteson1/terminal/blob/62888a5a0f2ccda00b53e52e96537fd67213e4ab/src/cascadia/TerminalControl/ControlCore.cpp#L415-L420) to the page, and bubble an event to request a new connection * [ ] Revert [this](https://github.com/sotteson1/terminal/blob/62888a5a0f2ccda00b53e52e96537fd67213e4ab/src/cascadia/TerminalConnection/ConnectionStateHolder.h#L89-L95) * [ ] Investigate only clearing the buffer to scrollback, instead of `inheritCursor`ing
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18810