Skip to content

Conversation

@zed-zippy
Copy link
Contributor

@zed-zippy zed-zippy bot commented Jan 12, 2026

Cherry-pick of #46613 to stable


Closes #46590

trust_all.mov

use smol::channel::{Receiver, Sender}; do not propagate the value
change to all receivers, hence only one language server received the
"worktree trusted" message.
The fix uses watch kind of channels instead, and cleans up its state
more eager to rely on the sender drop as another form of notification.

Release Notes:

  • Fixed groups of language servers not starting after worktree trust
    approval
Closes #46590


https://github.com/user-attachments/assets/8464a3b6-9258-4d15-9168-56178bf46437

`use smol::channel::{Receiver, Sender};` do not propagate the value
change to all receivers, hence only one language server received the
"worktree trusted" message.
The fix uses `watch` kind of channels instead, and cleans up its state
more eager to rely on the sender drop as another form of notification.

Release Notes:

- Fixed groups of language servers not starting after worktree trust
approval
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 12, 2026
@zed-zippy zed-zippy bot merged commit 7e8d445 into v0.218.x Jan 12, 2026
24 checks passed
@zed-zippy zed-zippy bot deleted the cherry-pick-v0.218.x-38fc4eaf branch January 12, 2026 12:51
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

1 participant