Skip to content

extension_host: Fix IS_WASM_THREAD being set for wrong threads (#43005) (cherry-pick to stable)#43016

Merged
Veykril merged 2 commits intov0.213.xfrom
cherry-pick-v0.213.x-94a43dc7
Nov 19, 2025
Merged

extension_host: Fix IS_WASM_THREAD being set for wrong threads (#43005) (cherry-pick to stable)#43016
Veykril merged 2 commits intov0.213.xfrom
cherry-pick-v0.213.x-94a43dc7

Conversation

@zed-zippy
Copy link
Contributor

@zed-zippy zed-zippy bot commented Nov 18, 2025

Cherry-pick of #43005 to stable


#40883 implemented this
incorrectly. It was marking a random background thread as a wasm thread
(whatever thread picked up the wasm epoch timer background task),
instead of marking the threads that actually run the wasm extension.

This has two implications:

  1. it didn't prevent extension panics from tearing down as planned
  2. Worse, it actually made us hide legit panics in sentry for one of our
    background workers.

Now 2 still technically applies for all tokio threads after this, but we
basically only use these for wasm extensions in the main zed binary.

Release Notes:

  • Fixed extension panics crashing Zed on Linux

)

#40883 implemented this
incorrectly. It was marking a random background thread as a wasm thread
(whatever thread picked up the wasm epoch timer background task),
instead of marking the threads that actually run the wasm extension.

This has two implications:
1. it didn't prevent extension panics from tearing down as planned
2. Worse, it actually made us hide legit panics in sentry for one of our
background workers.

Now 2 still technically applies for all tokio threads after this, but we
basically only use these for wasm extensions in the main zed binary.

Release Notes:

- Fixed extension panics crashing Zed on Linux
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Nov 18, 2025
@Veykril Veykril merged commit 3152df9 into v0.213.x Nov 19, 2025
22 checks passed
@Veykril Veykril deleted the cherry-pick-v0.213.x-94a43dc7 branch November 19, 2025 07:45
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant