Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gui] ask before closing running terminal #3835

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

andrei-toterman
Copy link
Contributor

If a terminal is running, show a confirmation dialog that tells the user the state of the terminal will be lost.

MULTI-1682

we have bidirectional streaming rpcs, but we usually send only one
response back on that stream for most operations. therefore, the gui
would only read data from the stream until it got the first reply. but
this introduced errors in which the stream was disposed too early. now
we read everything from the stream, so that issue shouldn't happen.
@ricab
Copy link
Collaborator

ricab commented Dec 12, 2024

Was this designed? I am not used to terminals asking for confirmation to close, unless there are children processes running.

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.07%. Comparing base (637e431) to head (3a72a02).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3835      +/-   ##
==========================================
- Coverage   89.08%   89.07%   -0.01%     
==========================================
  Files         254      254              
  Lines       14598    14598              
==========================================
- Hits        13004    13003       -1     
- Misses       1594     1595       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrei-toterman andrei-toterman marked this pull request as draft December 12, 2024 19:53
@andrei-toterman andrei-toterman force-pushed the gui-open-shell-start-vm branch 2 times, most recently from a9bd618 to 859eef1 Compare December 17, 2024 14:31
Base automatically changed from gui-open-shell-start-vm to main December 20, 2024 23:38
@levkropp levkropp force-pushed the close-terminal-confirmation branch from 7fa0179 to 3a72a02 Compare January 22, 2025 18:02
@andrei-toterman andrei-toterman marked this pull request as ready for review January 22, 2025 19:07
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.

3 participants