Skip to content

fix(core): stream without prefixes showing tui#33194

Merged
FrozenPandaz merged 1 commit intonrwl:masterfrom
hugs7:bugfix/nx-showing-tui-stream-without-prefixes
Oct 24, 2025
Merged

fix(core): stream without prefixes showing tui#33194
FrozenPandaz merged 1 commit intonrwl:masterfrom
hugs7:bugfix/nx-showing-tui-stream-without-prefixes

Conversation

@hugs7
Copy link
Copy Markdown
Contributor

@hugs7 hugs7 commented Oct 23, 2025

Current Behavior

When using --output-style=stream-without-prefixes nx incorrectly shows the TUI instead of streaming

Expected Behavior

When using --output-style=stream-without-prefixes, nx should stream with no prefixes just like it does with --output-style=stream

Related Issue(s)

Fixes #32535

@hugs7 hugs7 requested a review from a team as a code owner October 23, 2025 03:28
@hugs7 hugs7 requested a review from MaxKless October 23, 2025 03:28
@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 23, 2025

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

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Oct 23, 2025 9:45pm

@netlify
Copy link
Copy Markdown

netlify Bot commented Oct 23, 2025

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 89303fe

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Oct 23, 2025

View your CI Pipeline Execution ↗ for commit 89303fe

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 37m 23s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 2m 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-10-23 22:11:58 UTC

nx-cloud[bot]

This comment was marked as outdated.

Comment thread packages/nx/src/tasks-runner/run-command.ts
Copy link
Copy Markdown
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 is proposing a fix for your failed CI:

These changes fix formatting inconsistencies by removing trailing commas from function parameters and array elements in the shouldUseTui function. We aligned the code with the project's Prettier configuration to ensure consistent code style across the codebase.

Suggested Fix changes
diff --git a/packages/nx/src/tasks-runner/is-tui-enabled.ts b/packages/nx/src/tasks-runner/is-tui-enabled.ts
index 9447dd4f27..293bed4906 100644
--- a/packages/nx/src/tasks-runner/is-tui-enabled.ts
+++ b/packages/nx/src/tasks-runner/is-tui-enabled.ts
@@ -24,7 +24,7 @@ export function isTuiEnabled() {
 export function shouldUseTui(
   nxJson: NxJsonConfiguration,
   nxArgs: NxArgs,
-  skipCapabilityCheck = process.env.NX_TUI_SKIP_CAPABILITY_CHECK === 'true',
+  skipCapabilityCheck = process.env.NX_TUI_SKIP_CAPABILITY_CHECK === 'true'
 ) {
   // If the current terminal/environment is not capable of displaying the TUI, we don't run it
   const isWindows = process.platform === 'win32';
@@ -34,7 +34,7 @@ export function shouldUseTui(
   if (typeof nxArgs.tui === 'boolean') {
     if (nxArgs.tui && !isCapable) {
       logger.warn(
-        'Nx Terminal UI was not enabled as it is not supported in this environment.',
+        'Nx Terminal UI was not enabled as it is not supported in this environment.'
       );
       return false;
     }
@@ -47,7 +47,7 @@ export function shouldUseTui(
 
   if (
     ['static', 'stream', 'stream-without-prefixes', 'dynamic-legacy'].includes(
-      nxArgs.outputStyle,
+      nxArgs.outputStyle
     )
   ) {
     // If the user has specified a non-TUI output style, we disable the TUI

Apply fix via Nx Cloud  Reject fix via Nx Cloud

Or Apply changes locally with:

npx nx-cloud apply-locally kUsG-GCYD

Apply fix locally with your editor ↗  View interactive diff ↗


🎓 To learn more about Self Healing CI, please visit nx.dev

@AgentEnder AgentEnder changed the title fix(nx): stream without prefixes showing tui fix(core): stream without prefixes showing tui Oct 23, 2025
test(nx): add stream without prefix case

fix(nx): stream check

fix(nx): set prefix explicit false

style(nx): formatting
@AgentEnder AgentEnder force-pushed the bugfix/nx-showing-tui-stream-without-prefixes branch from 3a47a26 to 89303fe Compare October 23, 2025 21:14
@FrozenPandaz FrozenPandaz merged commit 4a4b780 into nrwl:master Oct 24, 2025
15 checks passed
@FrozenPandaz
Copy link
Copy Markdown
Contributor

Thank you for your contribution! 🎉 LGTM

@hugs7 hugs7 deleted the bugfix/nx-showing-tui-stream-without-prefixes branch October 24, 2025 23:13
@hugs7
Copy link
Copy Markdown
Contributor Author

hugs7 commented Oct 24, 2025

No worries. Thanks for quick review @AgentEnder @FrozenPandaz

FrozenPandaz pushed a commit that referenced this pull request Oct 27, 2025
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
When using `--output-style=stream-without-prefixes` nx incorrectly shows
the TUI instead of streaming

## Expected Behavior
When using `--output-style=stream-without-prefixes`, nx should stream
with no prefixes just like it does with `--output-style=stream`

## Related Issue(s)

Fixes #32535

Co-authored-by: Hugo Burton <hugo.burton@westpac.com.au>
(cherry picked from commit 4a4b780)
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nx incorrectly displays the TUI when outputStyle stream-without-prefixes is specified

3 participants