Skip to content

Conversation

@AlephNotation
Copy link
Contributor

Fixed #133. The issue was that when displaying the ssh connection, we are putting the terminal in raw mode. When the ssh connection was closed unexpectedly, the cli was not restoring the terminal state. We now restore that terminal state :)

@AlephNotation
Copy link
Contributor Author

Also now fixes the disconnect

Args: cobra.MaximumNArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
apiCtx, cancel := context.WithTimeout(context.Background(), application.Timeouts.APIMedium)
defer cancel()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is very funny to me. That would almost certainly cause a forced disconnect after 30 seconds haha.

Copy link
Contributor

@asebexen asebexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. I believe this also solves what is probably the major cause of https://github.com/hdresearch/chelsea/issues/686; the Medium timeout would cause vers connect to consistently disconnect after 30 seconds, rather than the "once in a while" after 10 seconds in the bug I will be fixing. Confirmed that this fixed both the borked output, as well as the timeout.

@AlephNotation AlephNotation merged commit 3cc8d98 into main Dec 8, 2025
5 of 6 checks passed
@AlephNotation AlephNotation deleted the ty/restore-term-on-exit branch December 8, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLI sporadically breaks stdio

4 participants