Skip to content

Revert: Spawn terminal process on background executor - #41060

Merged
agu-z merged 2 commits into
mainfrom
revert-40774-40824
Oct 23, 2025
Merged

Revert: Spawn terminal process on background executor #41060
agu-z merged 2 commits into
mainfrom
revert-40774-40824

Conversation

@agu-z

@agu-z agu-z commented Oct 23, 2025

Copy link
Copy Markdown
Contributor

Reverts #40774 (and the dependent #40824) as it introduces a bug where Nushell processes are leaked and Ctrl+C doesn't kill the current process.

Release Notes:

  • Fix a bug where nushell processes wouldn't get killed after closing a terminal tab

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Oct 23, 2025
@agu-z
agu-z enabled auto-merge (squash) October 23, 2025 23:28
@agu-z
agu-z merged commit 1cf765e into main Oct 23, 2025
23 checks passed
@agu-z
agu-z deleted the revert-40774-40824 branch October 23, 2025 23:37
JosephTLyons pushed a commit that referenced this pull request Oct 24, 2025
Reverts #40774 and
#40824 since they introduce a
bug where Nushell processes are leaked and Ctrl+C doesn't kill the
current process.

Release Notes:

- Fix a bug where nushell processes wouldn't get killed after closing a
terminal tab
@ghost

ghost commented Oct 24, 2025

Copy link
Copy Markdown

Thank you for this fix! 🙏

@jackTabsCode

Copy link
Copy Markdown
Contributor

It seems like this has regressed again @agu-z?

As of 212 I think, it seems like ctrl-c is no longer working for some processes in Nushell

@Veykril

Veykril commented Nov 7, 2025

Copy link
Copy Markdown
Member

What operating system? DO you have a concrete reproducer? We did reland the original PR with some fixes applied again

@jackTabsCode

jackTabsCode commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

Simple reproduction:

loop { print "Hi"; sleep 1sec }

on nu 0.108.0

2025-11-07.15-04-55.mov

Zed: v0.212.2 (Zed Preview)
OS: macOS 26.1
Memory: 48 GiB
Architecture: aarch64

@Veykril

Edit: This occurs with bash too: while true; do echo "Hi"; sleep 1; done

jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
…#41060)

Reverts zed-industries#40774 and
zed-industries#40824 since they introduce a
bug where Nushell processes are leaked and Ctrl+C doesn't kill the
current process.

Release Notes:

- Fix a bug where nushell processes wouldn't get killed after closing a
terminal tab
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.

3 participants