Skip to content

Preview actions did not exit correctly. The occurrence of the problem may be related to the commit of 'Preview actions from the command palette on mouse hover' #18737

Closed

Description

@actanta

Windows Terminal version

1.22.10731.0

Windows build number

10.0.26100.3476

Other Software

No response

Steps to reproduce

  1. Win+R 'wt'
  2. CTRL+Shift+P
  3. Enter the first few letters of the custom action name, and then press Enter
  4. Now, you can reproduce . The first custom action name text previewed always appears at the bottom of the window.

setting.json

        {
            "command": 
            {
                "action": "sendInput",
                "input": "tssh --dragfile\n"
            },
            "id": "User.sendInput.B061DCF",
            "name": "0.tssh"
        },

Éléa Dufresne (@eleadufresne) Could you please confirm if it is related to your commit.
The occurrence of the problem may be related to the commit of 'Preview actions from the command palette on mouse hover'. It looks like this, but I can't be entirely sure.

mp4(Steps to reproduce):

steps.mp4

Expected Behavior

The expected result is that after entering and pressing enter, the preview disappears correctly.

Actual Behavior

The actual result is that after entering and pressing enter, the preview text is always displayed and obscures the keyboard input text.

Activity

  1. added
    Issue-BugIt either shouldn't be doing this or needs an investigation.
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Mar 28, 2025
  2. added theissue type on Mar 28, 2025
  3. added
    Area-CmdPalCommand Palette issues and features
    and removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on Apr 2, 2025
  4. DHowett commented on Apr 2, 2025

    @DHowett
    Member

    Éléa Dufresne (@eleadufresne) We used to have an issue like this with the keyboard previews for sendInput actions, but I think we fixed it at some point. Mouse previews may have reintroduced it? 🙂

  5. actanta commented on Apr 3, 2025

    @actanta
    Author

    When I switched the tag to '1.22.10731.0' in the code repository, I found that it didn't seem to contain this commit a86c90a. I apologize for the misunderstanding caused by this, Éléa Dufresne (@eleadufresne) . Perhaps this issue is not related to this commit a86c90a.

    Now I have no idea what the cause of the problem is.

    However, I also look forward to you @ eleadufresne taking a look at this issue when you have time. It may be a new opportunity to submit a pull request.

    Finally, thank you for your contribution to Windows Terminal, as you and all the contributors have made it even better.

  6. eleadufresne commented on Apr 4, 2025

    @eleadufresne
    Contributor

    Thanks for the clarification, actanta. I’ll take a closer look when I have time!

    Always glad to help 🙂

  7. niall83 commented on Sep 15, 2025

    @niall83

    I'm using Windows Terminal Preview (v 1.24.2372.0) and I have a bunch of actions in my settings.json.
    It seems for some input actions, if they appear first in the command palette list of commands, they cause the issue described.
    For example I had an action like this which caused the issue:

      {
        "command": {
          "action": "sendInput",
          "input": "aws s3 ls s3://bucket/\r"
        },
        "name": "abc"
      }

    Changing it to the following resolved the issue for me (by moving it to the end of the list of commands in the command palette):

      {
        "command": {
          "action": "sendInput",
          "input": "aws s3 ls s3://bucket/\r"
        },
        "name": "Z abc"
      }
  8. actanta commented on Sep 18, 2025

    @actanta
    Author

    niall83 Thank you for providing the solution. My current solution is to add a command with no text preview as the top priority.

            {
                "command": 
                {
                    "action": "scrollDown",
                    "input": ""
                },
                "id": "User.sendInput.A061BCD",
                "name": "0.a"
            }
  9. added a commit that references this issue on Feb 24, 2026
    1277751
  10. added a commit that references this issue on Feb 27, 2026
    70b1eac
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

    Area-CmdPalCommand Palette issues and featuresIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsPriority-3A description (P3)Product-TerminalThe new Windows Terminal.

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions