Skip to content

Conversation

@AgentEnder
Copy link
Member

Current Behavior

After running commands which spawn plugin workers on the main process (nx show project, or any command with the daemon disabled) some users (and notably @FrozenPandaz) experienced terminal issues that resulted in ↑ / ↓ printing escape codes instead of scrolling command history.

Expected Behavior

This pull request updates how plugin worker processes handle their input/output streams to improve terminal behavior and debugging capabilities. The main change is switching the worker's stdio from inherit to pipe, and then manually piping the worker's stdout and stderr to the main process. This avoids terminal state issues and enables better debugging.

Plugin worker process I/O handling:

  • Changed the worker process stdio option from 'inherit' to 'pipe' in startPluginWorker, preventing terminal state issues (such as broken arrow key functionality) after Nx execution.
  • Added logic to pipe the worker's stdout and stderr to the main process, making it easier to debug and allowing plugins to communicate metrics. Increased the max listener count on process.stdout and process.stderr to avoid warnings from multiple listeners.

Related Issue(s)

Fixes #

@AgentEnder AgentEnder requested a review from a team as a code owner November 4, 2025 17:37
@vercel
Copy link

vercel bot commented Nov 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Nov 4, 2025 8:27pm

@netlify
Copy link

netlify bot commented Nov 4, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit dd390c6
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/690a60287344820008e8608f
😎 Deploy Preview https://deploy-preview-33369--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Nov 4, 2025

View your CI Pipeline Execution ↗ for commit dd390c6

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ❌ Failed 1h 39m 54s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 1m 48s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 10s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-04 22:06:56 UTC

@AgentEnder AgentEnder enabled auto-merge (squash) November 4, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants