You're seeing these tabs likely because you've got the Windows Terminal set as the default terminal. Windows Terminal defaults to only closing the tab/pane when a client application exits "gracefully", i.e. with an exit code of 0
. The vintage console however would always close the window when the last client exits, regardless of exit code.
What you're seeing here is nx serve
is spawning a bunch of child processes that are all exiting with 1
, not 0
. With the vintage console as the default terminal, these console windows would have all disappeared instantly. Now they all stick around as tabs in the Terminal.
You can get these tabs to disappear instantly by setting "closeOnExit": "always"
in your profiles.defaults
in the settings.
Ultimately though, nx
should probably not be exiting with error code 1
, unless there's actually a reason they're returning some sort of error (without otherwise logging any error)