Skip to content

[Nitro CLI] Fix some Windows issues#9589

Merged
tobias-tengler merged 4 commits intomainfrom
tte/nitro-cli-improvements
Apr 24, 2026
Merged

[Nitro CLI] Fix some Windows issues#9589
tobias-tengler merged 4 commits intomainfrom
tte/nitro-cli-improvements

Conversation

@tobias-tengler
Copy link
Copy Markdown
Member

No description provided.

@tobias-tengler tobias-tengler changed the title [Nitro CLI] Handle MYSYS path expansion [Nitro CLI] Fix some Windows issues Apr 23, 2026
@tobias-tengler tobias-tengler marked this pull request as ready for review April 24, 2026 07:25
Copilot AI review requested due to automatic review settings April 24, 2026 07:25
Copy link
Copy Markdown
Contributor

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 addresses Windows terminal/rendering issues in the Nitro CLI by updating Spectre.Console and adjusting live activity rendering behavior, while also tightening API path validation.

Changes:

  • Upgraded Spectre.Console packages to 0.55.2.
  • Updated live activity rendering to avoid cursor-positioning artifacts (especially on Windows) by clearing the live region and re-emitting the final tree into scrollback.
  • Added API path validation requiring paths to start with /, along with a new regression test.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Apis/CreateApiCommandTests.cs Adds coverage for rejecting API paths that don’t start with /.
src/Nitro/CommandLine/src/CommandLine/Services/Console/NitroConsole.cs Implements WriteAnsi passthrough on the console wrapper.
src/Nitro/CommandLine/src/CommandLine/Services/Console/LiveActivitySink.cs Changes live rendering strategy (AutoClear + re-print final tree).
src/Nitro/CommandLine/src/CommandLine/Services/Console/ActivityTree.cs Adds a switch to emit/remove live-only padding used for a Spectre bug workaround.
src/Nitro/CommandLine/src/CommandLine/NitroRootCommand.cs Registers a new activity-demo command at the root level.
src/Nitro/CommandLine/src/CommandLine/Helpers/SelectableTable.cs Adjusts centering logic for the selectable table renderable.
src/Nitro/CommandLine/src/CommandLine/Commands/Apis/CreateApiCommand.cs Enforces leading / for --path and errors out otherwise.
src/Nitro/CommandLine/src/CommandLine/Commands/ActivityDemoCommand.cs Adds a manual activity rendering demo command and scenario argument.
src/Directory.Packages.props Bumps Spectre.Console / Json / Testing package versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Nitro/CommandLine/src/CommandLine/Commands/Apis/CreateApiCommand.cs Outdated
Comment thread src/Nitro/CommandLine/src/CommandLine/Services/Console/NitroConsole.cs Outdated
tobias-tengler and others added 2 commits April 24, 2026 09:38
…ommand.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…nsole.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@tobias-tengler tobias-tengler merged commit 1a8e7e1 into main Apr 24, 2026
138 checks passed
@tobias-tengler tobias-tengler deleted the tte/nitro-cli-improvements branch April 24, 2026 10:18
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (a5ff7c6) to head (37a6ece).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff      @@
##   main   #9589   +/-   ##
============================
============================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants