Skip to content

[rush] Rush recycler task on Windows shows the PowerShell window when Windows Terminal is set as the default terminal application #3232

Open

Description

The Rush recycler task on Windows uses PowerShell to purge folders in common/temp asynchronously in the background, but when Windows Terminal is set as the default terminal application, the PowerShell window is displayed.

Repro steps

  1. Set Windows Terminal as the default terminal application. See steps here.
  2. In a large Rush mono-repo, run rush install and then run rush purge. A PowerShell window that's executing the recycler task would be launched and would remain visible until the recycler task completes.

Expected result: The PowerShell window is not visible.

Actual result: The PowerShell window is visible.

Details

Windows Terminal does not respect the PowerShell argument -WindowStyle Hidden - this issue is tracked here.

Standard questions

Question Answer
@microsoft/rush globally installed version? 5.62.3
rushVersion from rush.json? 5.62.3
useWorkspaces from rush.json? yes
Operating system? <!-- Windows
Node.js version (node -v)? v16.13.1

Activity

  1. pwbriggs commented on May 27, 2024

    @pwbriggs
    Contributor

    I'm not familiar with the "rush recycler," but this happens to me when rush update completes. A blank WT window pops up, and it disappears after a few minutes.

    It appears this tooltip from Windows Terminal shows the command that's being run, if it helps:

    Screenshot

    image

    Do you know of any workaround while we wait for microsoft/terminal#12464?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions