Skip to content

Fix restored terminal reconnect#2313

Open
codebanditssss wants to merge 1 commit into
mainfrom
fix/reconnect-restored-terminal
Open

Fix restored terminal reconnect#2313
codebanditssss wants to merge 1 commit into
mainfrom
fix/reconnect-restored-terminal

Conversation

@codebanditssss

Copy link
Copy Markdown
Collaborator

Summary:

  • Reconnect the terminal mux when a restored session becomes live with the same terminal handle.
  • Add a regression test for restored terminal input.

Test:

  • npm test -- useTerminalSession.test.tsx

- Reopen terminal mux after restored sessions become live
- Cover restore with unchanged terminal handles

@harshitsinghbhandari harshitsinghbhandari left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reconnect should only fire when the session actually comes back to life, not on every session update, otherwise a permanently-broken pane keeps retrying on each tick with no backoff.

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.

2 participants