Skip to content

Fix the dynamic UI.#23306

Merged
benjyw merged 1 commit intopantsbuild:mainfrom
benjyw:fix_dynamic_ui
May 2, 2026
Merged

Fix the dynamic UI.#23306
benjyw merged 1 commit intopantsbuild:mainfrom
benjyw:fix_dynamic_ui

Conversation

@benjyw
Copy link
Copy Markdown
Contributor

@benjyw benjyw commented May 1, 2026

In #23114 we upgraded to indicatif 0.18.4,
which included a fix to respect TERM, and
display nothing if it's unset.

Since we did not pass TERM through pantsd, the
dynamic ui is now not shown.

This change fixes that, and also pass NO_COLOR
through, since indicatif inspects it too.

In pantsbuild#23114 we upgraded to indicatif 0.18.4,
which included a fix to respect TERM=dumb, or
no TERM at all, as well as respecting NO_COLOR.

Since we did not pass TERM through pantsd, the
dynamic ui was not shown. This change fixes that.
@benjyw benjyw added this to the 2.32.x milestone May 1, 2026
@benjyw benjyw requested a review from sureshjoshi May 1, 2026 19:53
@benjyw benjyw added needs-cherrypick [CI] release-notes:not-required [CI] PR doesn't require mention in release notes labels May 1, 2026
@benjyw
Copy link
Copy Markdown
Contributor Author

benjyw commented May 1, 2026

AI disclosure: Gotta hand this one to Claude. It figured out the cause by introspection, and manual experiment confirmed it.

@benjyw
Copy link
Copy Markdown
Contributor Author

benjyw commented May 1, 2026

Note that this bug didn't make it into any releases, so does not need mentioning in release notes.

@benjyw benjyw merged commit bea2e9a into pantsbuild:main May 2, 2026
25 checks passed
@benjyw benjyw deleted the fix_dynamic_ui branch May 2, 2026 18:47
@WorkerPants
Copy link
Copy Markdown
Member

I tried to automatically cherry-pick this change back to each relevant milestone, so that it is available in those older releases of Pants.

✔️ 2.32.x

Successfully opened #23308.


Thanks again for your contributions!

🤖 Beep Boop here's my run link

benjyw added a commit that referenced this pull request May 2, 2026
In #23114 we upgraded to indicatif 0.18.4,
which included a fix to respect TERM, and 
display nothing if it's unset.

Since we did not pass TERM through pantsd, the
dynamic ui is now not shown. 

This change fixes that, and also pass NO_COLOR
through, since indicatif inspects it too.

Co-authored-by: Benjy Weinberger <benjyw@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes:not-required [CI] PR doesn't require mention in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants