Skip to content

Conversation

baronfel
Copy link
Member

@baronfel baronfel commented Sep 29, 2025

Fixes part of #12486, but not all.

Context

This introduces a new Terminal Logger Parameter (DISABLENODEDISPLAY) that disables the live-updating node display portion of the Terminal Logger output. This output is very wasteful when LLMs are running the build, and the hope is that we can toggle this flag automatically at the dotnet CLI level to maintain the structure benefits of TL while also not flooding the context.

Changes Made

  • introduced a new parameter and threaded it through the logic

Testing

  • Manual testing done - verified that the flag does in fact disable the display entirely.
tl-node-display-disable.mp4

Notes

This will use the logic from dotnet/sdk#51054 in the SDK to turn off the live-update feature.

@Copilot Copilot AI review requested due to automatic review settings September 29, 2025 22:05
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new parameter (DISABLENODEDISPLAY) to the Terminal Logger that allows disabling the live-updating nodes display while preserving other Terminal Logger functionality. This change addresses performance concerns when MSBuild is executed by LLMs or other automated tools that don't benefit from live output updates.

  • Introduces a new boolean field _showNodesDisplay that defaults to true for backward compatibility
  • Adds parameter parsing for DISABLENODEDISPLAY to toggle the display off
  • Conditionally starts the refresh thread and calls DisplayNodes() based on this setting

@baronfel
Copy link
Member Author

@rainersigwald mentioned we'd need to get VS QB approval for this at this time

@baronfel baronfel changed the base branch from main to vs18.0 October 1, 2025 14:14
@baronfel baronfel requested a review from a team as a code owner October 1, 2025 14:14
@baronfel baronfel changed the base branch from vs18.0 to main October 1, 2025 14:15
@baronfel
Copy link
Member Author

baronfel commented Oct 1, 2025

/backport to vs18.0

Copy link
Contributor

github-actions bot commented Oct 1, 2025

Started backporting to vs18.0: https://github.com/dotnet/msbuild/actions/runs/18165112437

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