zed/crates/remote/src
tidely fdad9186b8
git_ui: Dismiss askpass prompts when requests end (#61292)
# Objective

Fixes #47623

- When authenticating git commands using a security key through
`askpass`. The modal which asks for user presence does not get dismissed
even after the git command finishes successfully.

## Solution

Add a cancellation task to the `AskPassModal`, which gets dropped when
the requested operation completes. This cancellation task then dismisses
the modal.

## Testing

- I've tried authentication through `askpass` using my own security key.
Testing both successful and failed authentication.
- I've added tests which confirm that the modal gets dismissed when a
task is cancelled, and that the cancellation is triggered when
`ask_password` Task gets dropped.

Willing to pair on review, message me on Slack. Showcase video left out
because it would leak private information.

## 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:

- Fixed authentication prompts not dismissing automatically when using
security keys with ssh
2026-08-18 10:02:20 +00:00
..
transport git_ui: Dismiss askpass prompts when requests end (#61292) 2026-08-18 10:02:20 +00:00
json_log.rs remote: Add remote timeout debugging commands (#46695) 2026-01-13 13:39:07 +00:00
protocol.rs Restructure remote client crate, consolidate SSH logic (#36967) 2025-08-27 00:15:39 +00:00
proxy.rs remote: Fix being unable to reconnect when the remote server dies (#47200) 2026-01-20 10:44:29 +00:00
remote.rs sidebar: Filter thread groups by remote host identity (#53918) 2026-04-14 18:40:36 +00:00
remote_client.rs git_ui: Dismiss askpass prompts when requests end (#61292) 2026-08-18 10:02:20 +00:00
remote_identity.rs Prevent archival of manually-created worktrees (#58275) 2026-06-16 15:36:59 +00:00
transport.rs Restore remote binary dev build output (#59997) 2026-06-27 09:21:37 +00:00