close
Skip to content

repl: Retry iopub connection on failure - #62358

Merged
SomeoneToIgnore merged 1 commit into
zed-industries:mainfrom
marsjane:retry-iopub-rebased
Aug 8, 2026
Merged

repl: Retry iopub connection on failure#62358
SomeoneToIgnore merged 1 commit into
zed-industries:mainfrom
marsjane:retry-iopub-rebased

Conversation

@marsjane

@marsjane marsjane commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Context

This is a rebase of #52302, which was approved by @Veykril in May but still needed a rebase before it could be merged — it seems the original author @MostlyKIGuess forgot about it. I rely on this fix daily for REPL over SSH on an unstable connection and need it rather urgently, so I cherry-picked the original commit (with authorship preserved) and resubmitted it as a new PR.

Closes #51834
Supersedes #52302

How to Review

The code itself was already reviewed and approved in #52302. This PR only rebases it onto latest main, with one simple conflict resolution against #53014: when all retries are exhausted, the error now uses the improved message from that PR (suggesting pip install ipykernel on the remote host) instead of the plain one. Comparing this diff against the original PR's diff should make the review straightforward.

Self-Review Checklist

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content adheres to Zed's UI standards (UX/UI and icon guidelines)
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • repl: Fixed iopub connection failures over SSH on slow or unstable connections by retrying with exponential backoff.

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Aug 8, 2026
@zed-community-bot zed-community-bot Bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Aug 8, 2026
@SomeoneToIgnore SomeoneToIgnore self-assigned this Aug 8, 2026

@SomeoneToIgnore SomeoneToIgnore left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approving based on #52302 's review.

@SomeoneToIgnore
SomeoneToIgnore added this pull request to the merge queue Aug 8, 2026
Merged via the queue into zed-industries:main with commit be52d3b Aug 8, 2026
51 checks passed
audivir pushed a commit to audivir/zed that referenced this pull request Aug 10, 2026
## Context

This is a rebase of zed-industries#52302, which was approved by @Veykril in May but
still needed a rebase before it could be merged — it seems the original
author @MostlyKIGuess forgot about it. I rely on this fix daily for REPL
over SSH on an unstable connection and need it rather urgently, so I
cherry-picked the original commit (with authorship preserved) and
resubmitted it as a new PR.

Closes zed-industries#51834
Supersedes zed-industries#52302

## How to Review

The code itself was already reviewed and approved in zed-industries#52302. This PR
only rebases it onto latest `main`, with one simple conflict resolution
against zed-industries#53014: when all retries are exhausted, the error now uses the
improved message from that PR (suggesting `pip install ipykernel` on the
remote host) instead of the plain one. Comparing this diff against the
original PR's diff should make the review straightforward.

## Self-Review Checklist

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- repl: Fixed iopub connection failures over SSH on slow or unstable
connections by retrying with exponential backoff.

Co-authored-by: mostlykiguess <bruvistrue93@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remote REPL: Kernel error: Failed to create iopub connection

3 participants