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 26, 2025 6:36pm

@netlify
Copy link

netlify bot commented Nov 4, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit df57c60
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6927469a50b0800008a52943
😎 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 df57c60

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

☁️ Nx Cloud last updated this comment at 2025-11-26 20:39:56 UTC

nx-cloud[bot]

This comment was marked as outdated.

Copy link
Contributor

@nx-cloud nx-cloud bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nx Cloud has identified a flaky task in your failed CI:

🔂 Since the failure was identified as flaky, we reran your CI automatically.

Nx Cloud View detailed reasoning in Nx Cloud ↗


🎓 Learn more about Self-Healing CI on nx.dev

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