Skip to content

Windows Terminal crashes when dragging a tab #15689

Open

Description

@mwaltersbmc

Windows Terminal version

1.17.11461.0 and 1.18.1462.0

Windows build number

10.0.22000.1936

Other Software

No response

Steps to reproduce

Open Terminal and create a session of any type eg Command Prompt, ssh connection, Powershell

Left click on session tab and drag

Expected Behavior

Reorder tabs

Actual Behavior

Terminal crashes with no visible error message

Crashdumps are created in %LOCALAPPDATA%\CrashDumps

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 Jul 11, 2023
  2. mwaltersbmc commented on Jul 11, 2023

    @mwaltersbmc
    Author

    Also tested with Terminal 1.17.11461.0 on Windows 10.0.19045.3086 and the problem does not happen

  3. zadjii-msft commented on Jul 11, 2023

    @zadjii-msft
    Member

    Can you share the crash dump with us/? There are some notes on this wiki page. Thanks!

  4. added and removed
    Needs-Author-FeedbackThe original author of the issue/PR needs to come back and respond to something
    on Jul 11, 2023
  5. microsoft-github-policy-service commented on Jul 16, 2023

    @microsoft-github-policy-service
  6. microsoft-github-policy-service commented on Jul 16, 2023

    @microsoft-github-policy-service
  7. mwaltersbmc commented on Jul 17, 2023

    @mwaltersbmc
    Author

    Dump file provided privately

  8. 78 remaining items

  9. dovholuknf commented on Apr 24, 2026

    @dovholuknf

    This is 100% reproducable when using /runas. With agents a thing now, I don't want them running amok as 'me' so i will now: runas /user:claude "wt.exe"

    Rearranging a tab or tearing a tab crashes all wt.exe processes for that user (which is a major annoyance)

  10. zadjii-msft commented on Apr 24, 2026

    @zadjii-msft
    Member

    WELL NOW THAT'S A LEAD

    Yeah, that makes perfect sense. I'm pretty sure the modern drag drop service, the one that's responsible for handling tab drag drop in ZAML applications, definitely can't handle things running as different users. Hence why we had to disable tab drag drop for terminals running as admin.

    I don't think it would be too hard to modify our CanDragDropTabs check to also check if you're running as a different user.

  11. escape0707 commented on Jul 2, 2026

    @escape0707

    Mike Griese (@zadjii-msft) This problem needs a quick and fast hotfix. Please at least allow users to "disable drag-n-drop for detaching/merging tabs" now because nowadays with the use of Codex/Claude Code I constantly run into this problem, and it kills the entire Windows Terminal and multiple agents, simply by clicking to reveal another tab.
    Also, current drag-n-drop detach sensitivity is too high anyway, it's very easy for a click to be treated as a tab detach, which is not ideal either.

  12. lilith commented on Jul 2, 2026

    @lilith
  13. zadjii-msft commented on Jul 6, 2026

    @zadjii-msft
    Member

    Frankly, I'm not staffed onto the Terminal full time currently - I'm just here to keep an eye on the community. But if someone who can repro this reliably can get their agents to mess around with CanDragDropTabs, and get before/after recordings of the crash and the fix, then I'd help review.

  14. dovholuknf commented on Jul 6, 2026

    @dovholuknf

    get before/after recordings of the crash and the fix

    i'll give it a whirl, but when you write that ☝️ can you explain what you want/mean by 'recordings'?

  15. zadjii-msft commented on Jul 6, 2026

    @zadjii-msft
    Member

    Like, a screen recording. I prefer ScreenToGif to get one, but I think even the snipping tool is good enough at this point. Use whatever you like. Just something that proves to me that you actually repro'd the bug, and fixed it, and didn't just have a LLM waste GPU cycles on something that you never tested yourself.

  16. dovholuknf commented on Jul 7, 2026

    @dovholuknf

    What a sad place we are in that you would even require that (because people aren't actually testing it themselves)... Good grief....... The patch to prevent other users from dragging tabs was pretty small but I also tried to accommodate the other request of having a toggle in the UI just in case that wasn't everyone's use case but when I'd tested it, it wasn't working just yet... Would that sort of thing be accepted? I wasn't sure. My main worry is that while this problem is clear and easily reproduced for me when using /runas any other user, the other reporters here don't appear to be in that same ballpark.

    proposed 'interaction' toggle base on the other users request:

    Image

    Also for what it's worth you CAN tear out / move tabs successfully using the move tab action in the keybindings key in the settings.json:

              {
                  "id": "Terminal.MoveTabForward",
                  "keys": "ctrl+shift+pgdn"
              },
              {
                  "id": "Terminal.MoveTabBackward",
                  "keys": "ctrl+shift+pgup"
              },
              {
                  "id": "Terminal.MoveTabToNewWindow",
                  "keys": "ctrl+shift+o"
              }
    
  17. dovholuknf commented on Jul 7, 2026

    @dovholuknf

    PR put up at #20394

  18. dovholuknf commented on Jul 20, 2026

    @dovholuknf

    Mike Griese (@zadjii-msft) not to be a bother, but in case you missed it I've put a PR up to try to address/get feedback. cheers

  19. dovholuknf commented on Aug 7, 2026

    @dovholuknf

    Mike Griese (@zadjii-msft) - sorry mate but I know these things get auto closed so I'm just commenting to keep it fresh and maybe get lucky that you/someone sees the pr here... :) #20394

    (sorry for notifying the rest of the thread as well)

  20. MFisherIT commented on Sep 3, 2026

    @MFisherIT

    I am also having this issue. Running the Windows Terminal as different user is a normal part of multiple work flows. Such as: assisting users without local admin, triggering or viewing remote systems that require a different account access, etc. There are a lot of different workarounds, but this remains an issue.
    wt Version: 1.24.11911.0
    Windows: 10.0.26200.9106
    Reproduce: saps -u -cr $env:USERDOMAIN\user.name -f wt > attempt to move or tear tab.

  21. snkemp commented on Oct 8, 2026

    @snkemp

    Is this ever getting fixed??

  22. dovholuknf commented on Oct 8, 2026

    @dovholuknf

    I re-coment on the PR I put up that --i think-- prevents this problem but it has never even had anyone look at it as far as i can tell so far :(

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

Metadata

Metadata

Labels

In-PRThis issue has a related PRIssue-BugIt either shouldn't be doing this or needs an investigation.Needs-Tag-FixDoesn't match tag requirementsProduct-TerminalThe new Windows Terminal.Severity-CrashCrashes are real bad news.

Type

No type

Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions