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

feat(terminal): session to the terminal is reused #3725

Merged
merged 1 commit into from Sep 1, 2023

Conversation

benoitf
Copy link
Collaborator

@benoitf benoitf commented Aug 31, 2023

What does this PR do?

persists the terminal's session to a store, so we can see again the terminal's connection when switching from tab to tab and we don't start a new session

also we reconnect in case of connection's failure or if we end the current connection

for the tests of the terminal it sets screenReaderMode so accessibility elements are added in the rendering.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

fixes #502

How to test this PR?

Go to the terminal's of a container, go to another tab and then come back to the terminal's tab
you should see the previous content and be able to continue

if you exit from the terminal (like using exit or control+d you're automatically reconnected

@benoitf benoitf requested a review from a team as a code owner August 31, 2023 07:28
@benoitf benoitf requested review from dgolovin and cdrage and removed request for a team August 31, 2023 07:28
@benoitf benoitf changed the title chore: allow to receive end/error event for container's terminal feat(terminal): session to the terminal is reused Aug 31, 2023
@benoitf benoitf changed the title feat(terminal): session to the terminal is reused [do not merge] feat(terminal): session to the terminal is reused Aug 31, 2023
Copy link
Contributor

@lstocchi lstocchi left a comment

Choose a reason for hiding this comment

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

LGTM. Tested on Windows, works fine!! 🚀

@benoitf benoitf changed the title [do not merge] feat(terminal): session to the terminal is reused feat(terminal): session to the terminal is reused Aug 31, 2023
fixes containers#502
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
@benoitf benoitf enabled auto-merge (rebase) September 1, 2023 07:06
@benoitf benoitf merged commit 12780b2 into containers:main Sep 1, 2023
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.4.0 milestone Sep 1, 2023
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.

Longer sessions in Terminal window
3 participants