Skip to content

feat(core): disable tui when output style is set to an incompatible style#30873

Merged
AgentEnder merged 1 commit intomasterfrom
feat/disable-tui-via-output-style
May 1, 2025
Merged

feat(core): disable tui when output style is set to an incompatible style#30873
AgentEnder merged 1 commit intomasterfrom
feat/disable-tui-via-output-style

Conversation

@AgentEnder
Copy link
Copy Markdown
Member

Current Behavior

Setting --output-style does not do anything when the tui is enabled

Expected Behavior

If --output-style is set to static, stream, or dynamic-legacy, the tui is disabled. If the --output-style is set to dynamic, the tui is enabled.

Related Issue(s)

Fixes #

@AgentEnder AgentEnder requested review from a team as code owners April 25, 2025 15:41
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Apr 30, 2025 11:50pm

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Apr 25, 2025

View your CI Pipeline Execution ↗ for commit fb05864.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-ci ✅ Succeeded 6m View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 20s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 3s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-05-01 01:00:11 UTC

Copy link
Copy Markdown
Contributor

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

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

Wouldn't it help with cohesiveness of options and configuration to go for --output-style=tui when being explicit? One less thing for folks to hold in their head that dynamic === tui.


Existing things:

nx.json

"tui": { ... }

Env var

NX_TUI=...

CLI option

--tui-auto-exit=...

New thing:

CLI option

--output-style=tui

Copy link
Copy Markdown
Contributor

@FrozenPandaz FrozenPandaz left a comment

Choose a reason for hiding this comment

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

Fix these up and it's good to go

Comment thread packages/nx/src/command-line/yargs-utils/shared-options.ts Outdated
Comment thread packages/nx/src/tasks-runner/is-tui-enabled.ts Outdated
Comment thread packages/nx/src/tasks-runner/is-tui-enabled.ts Outdated
@AgentEnder AgentEnder force-pushed the feat/disable-tui-via-output-style branch from 63109d8 to 2b9a40e Compare April 30, 2025 15:47
@AgentEnder AgentEnder force-pushed the feat/disable-tui-via-output-style branch 2 times, most recently from 843fb81 to d6ebd65 Compare April 30, 2025 18:41
@AgentEnder AgentEnder force-pushed the feat/disable-tui-via-output-style branch from d6ebd65 to fb05864 Compare April 30, 2025 23:40
@AgentEnder AgentEnder enabled auto-merge (squash) April 30, 2025 23:40
@AgentEnder AgentEnder merged commit 5222a06 into master May 1, 2025
6 checks passed
@AgentEnder AgentEnder deleted the feat/disable-tui-via-output-style branch May 1, 2025 01:00
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2025

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 May 7, 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.

3 participants