Skip to content

recent_projects: Don't panic when attempting to delete SSH server out of bounds#51091

Merged
osiewicz merged 1 commit intomainfrom
remote-server-list-double-update
Mar 9, 2026
Merged

recent_projects: Don't panic when attempting to delete SSH server out of bounds#51091
osiewicz merged 1 commit intomainfrom
remote-server-list-double-update

Conversation

@osiewicz
Copy link
Copy Markdown
Member

@osiewicz osiewicz commented Mar 9, 2026

Fixes ZED-517

Can be reproed by:

Going into server options of the last server on your list.
selecting "Remove server".
Clicking on the button AND issuing menu::Confirm action at the same time (well, roughly the same time).

The result: OS pop-up is issued twice; if the user does confirm twice, that's when that panic is hit.

Closes #ISSUE

Before you mark this PR as ready for review, make sure that you have:

  • Added a solid test coverage and/or screenshots from doing manual testing
  • Done a self-review taking into account security and performance aspects
  • Aligned any UI changes with the UI checklist

Release Notes:

  • Fixed a potential crash when deleting SSH servers too eagerly.

… of bounds

Fixes ZED-517

Can be reproed by:

    Going into server options of the last server on your list.
    selecting "Remove server".
    Clicking on the button AND issuing menu::Confirm action at the same time (well, roughly the same time).

The result: OS pop-up is issued twice; if the user does confirm twice, that's when that panic is hit.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 9, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Mar 9, 2026
@osiewicz osiewicz enabled auto-merge (squash) March 9, 2026 11:00
@osiewicz osiewicz merged commit 4abeeda into main Mar 9, 2026
38 checks passed
@osiewicz osiewicz deleted the remote-server-list-double-update branch March 9, 2026 11:07
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 staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant