Forum Discussion

Shaerif's avatar
Shaerif
Copper Contributor
May 21, 2026

textinputhost.exe hangs after Win+C or Win+V and leaves a frozen panel that blocks all mouse input

I keep hitting a bug on Windows 11 where pressing Win+C (Copilot) or Win+V (Clipboard History) causes textinputhost.exe to hang. When it hangs, the panel stays on screen, frozen. You can see it, but you cannot interact with it or close it. Every mouse click goes nowhere. Nothing on the desktop, taskbar, or any open app responds. The keyboard still works, but the mouse is fully blocked by the hung panel.

 

The only way out is to press Ctrl+Shift+Esc to open Task Manager, find textinputhost.exe under Background Processes, and click End Task. The panel disappears and mouse input returns right away. But textinputhost.exe starts again on its own, so the same thing happens next time you press Win+C or Win+V.

 

STEPS TO REPRODUCE:

1. Press Win+C or Win+V anywhere on the desktop or inside any app.

2. Wait for the panel to open.

3. Try to dismiss it by clicking away or pressing Escape.

4. The panel freezes. You can still see it on screen but it stops responding.

5. Try clicking anywhere. Nothing works.

6. Press Ctrl+Shift+Esc to open Task Manager.

7. Find textinputhost.exe under Background Processes and click End Task.

8. The panel closes and the mouse works again.

 

EXPECTED BEHAVIOR:

After you dismiss the panel, textinputhost.exe should close cleanly and return full mouse control to the system.

 

ACTUAL BEHAVIOR:

textinputhost.exe hangs and keeps the panel on screen in a frozen state. It blocks all mouse input to every other window until you kill the process in Task Manager.

 

WORKAROUND:

Press Ctrl+Shift+Esc, find textinputhost.exe in Task Manager, and click End Task. You need to do this every time the bug occurs because the process restarts on its own.

 

SYSTEM INFO:

Windows 11 24H2. Windows Feature Experience Pack (textinputhost.exe). Affects both Copilot (Win+C) and Clipboard History (Win+V). Both use textinputhost.exe to render their panels.

 

Has anyone found a fix for this? Is there a registry setting or Group Policy to stop textinputhost.exe from hanging? Has Microsoft acknowledged the issue?

2 Replies

  • ehkay's avatar
    ehkay
    Copper Contributor

    I had the same problem on Windows 11 25H2 (build 26200.9711). This time I left the panel frozen and looked at what TextInputHost.exe was doing. Here is what I found, plus a workaround that clears it automatically.

     

    **What's happening**

     

    - The panel isn't waiting on anything. One of TextInputHost's UI threads is stuck in a loop, using about 90% of one CPU core. On my machine Task Manager showed "Windows Input Experience" at around 7% CPU the whole time.

    - The loop is inside `edgehtml.dll`, the old EdgeHTML web engine that TextInputHost still loads. The stuck call stack goes Windows.UI.Xaml → DispatchMessage → an edgehtml window procedure → PeekMessageW, over and over. My guess is that it's previewing an item copied with formatting (from a browser or chat app), but I couldn't prove which item set it off.

    - Because that thread never gets back to its normal message loop, the panel can't react to clicks or close itself when it loses focus.

    - It stays above everything because the panel lives in the z-order layer Windows reserves for input panels (z-band 3, "IHM"). That layer sits above even "always on top" windows, so nothing can cover it.

    - Nothing gets logged in Event Viewer.

     

    **Quick fix when it happens**

     

    End "Windows Input Experience" in Task Manager, or press Win+R and run:

     

    ```

    taskkill /f /im TextInputHost.exe

    ```

     

    Windows restarts the process straight away and Win+V works again.

     

    **Automatic fix**

     

    This PowerShell script checks every 3 seconds. If Windows reports one of TextInputHost's UI threads as hung for 10 seconds or more, it ends TextInputHost.exe and adds a line to a log file next to the script. A healthy panel doesn't stay hung that long, so it leaves the touch keyboard and emoji panel alone. No admin rights needed.

     

    Step 1. Create the folder `C:\Users\<your name>\Scripts` and save this in it as `Watch-ClipboardPanel.ps1`:

     

    ```powershell

    # Watch-ClipboardPanel.ps1

    # Ends TextInputHost.exe ("Windows Input Experience") when one of its UI threads stays hung,

    # which is what leaves the Win+V clipboard panel frozen on top of every window.

    # Windows starts TextInputHost again by itself. Each restart is logged next to this script.

    # -Once check right now and act immediately, then exit

    param([int]$IntervalSeconds = 3, [int]$HungSeconds = 10, [switch]$Once)

     

    Add-Type @"

    using System;

    using System.Runtime.InteropServices;

    public static class ClipPanel {

    [DllImport("user32.dll", CharSet=CharSet.Unicode)] static extern IntPtr FindWindowEx(IntPtr parent, IntPtr after, string cls, string title);

    [DllImport("user32.dll")] static extern uint GetWindowThreadProcessId(IntPtr h, out uint pid);

    [DllImport("user32.dll")] static extern bool IsHungAppWindow(IntPtr h);

    // True if Windows reports any XAML UI thread of process pid as hung.

    public static bool IsHung(int pid) {

    IntPtr h = IntPtr.Zero;

    while ((h = FindWindowEx(new IntPtr(-3), h, "XAMLMessageWindowClass", null)) != IntPtr.Zero) {

    uint p; GetWindowThreadProcessId(h, out p);

    if (p == pid && IsHungAppWindow(h)) return true;

    }

    return false;

    }

    }

    "@

     

    $log = Join-Path $PSScriptRoot 'ClipboardPanel.log'

    $mutex = New-Object Threading.Mutex($false, 'Local\Watch-ClipboardPanel')

    if (-not $Once -and -not $mutex.WaitOne(0)) { return } # already running

     

    $hungSince = @{}

    do {

    foreach ($p in @(Get-Process TextInputHost -ErrorAction SilentlyContinue)) {

    if (-not [ClipPanel]::IsHung($p.Id)) { $hungSince.Remove($p.Id); continue }

    if (-not $hungSince.ContainsKey($p.Id)) { $hungSince[$p.Id] = Get-Date }

    if ($Once -or ((Get-Date) - $hungSince[$p.Id]).TotalSeconds -ge $HungSeconds) {

    Stop-Process -Id $p.Id -Force -ErrorAction SilentlyContinue

    $hungSince.Remove($p.Id)

    Add-Content $log ('{0:yyyy-MM-dd HH:mm:ss} Ended hung TextInputHost (pid {1})' -f (Get-Date), $p.Id)

    }

    }

    if (-not $Once) { Start-Sleep -Seconds $IntervalSeconds }

    } while (-not $Once)

    ```

     

    Step 2. Paste this into PowerShell. It makes the script start hidden every time you sign in, and starts it now:

     

    ```powershell

    $lnk = (New-Object -ComObject WScript.Shell).CreateShortcut("$([Environment]::GetFolderPath('Startup'))\Clipboard panel watchdog.lnk")

    $lnk.TargetPath = "$env:WINDIR\System32\conhost.exe"

    $lnk.Arguments = "--headless powershell.exe -NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -File `"$HOME\Scripts\Watch-ClipboardPanel.ps1`""

    $lnk.Save()

    Start-Process $lnk.FullName

    ```

     

    To turn it off, disable "Clipboard panel watchdog" in Task Manager > Startup apps, or delete the shortcut from the Startup folder (Win+R, then `shell:startup`).

     

    **Or let Claude Code set it up**

     

    If you use Claude Code, paste this prompt into it. It checks your system, writes the same script, and asks before adding anything to startup.

     

    ```text

    The Windows 11 clipboard history panel (Win+V) sometimes freezes on my screen. It stays on top of every window, ignores clicks, and won't close until I end "Windows Input Experience" (TextInputHost.exe) in Task Manager. Please set up an automatic fix on this PC.

     

    What's known: when it freezes, one of TextInputHost.exe's UI threads gets stuck in a loop inside edgehtml.dll and Windows marks it as hung. The panel sits in a z-order band above "always on top" windows, so nothing can cover it. Ending TextInputHost.exe clears it, and Windows restarts the process by itself.

     

    Please:

    1. If the panel is frozen right now, confirm this first. Use FindWindowEx with HWND_MESSAGE to find TextInputHost's message-only windows of class XAMLMessageWindowClass, and check IsHungAppWindow on each. Tell me what you find. If the cause looks different, stop and explain before changing anything.

    2. Create %USERPROFILE%\Scripts\Watch-ClipboardPanel.ps1. Every 3 seconds it should run that same check. If a TextInputHost XAML thread stays hung for 10 seconds or more, end TextInputHost.exe and append a timestamped line to ClipboardPanel.log next to the script. Only ever end TextInputHost.exe. Allow only one copy to run at a time (named mutex), and add a -Once switch that checks and acts immediately, then exits.

    3. Show me the script, then run it once with -Once.

    4. Ask me before making it start when I sign in. If I agree, put a shortcut named "Clipboard panel watchdog" in my Startup folder that runs it hidden: conhost.exe --headless powershell.exe -NoProfile -ExecutionPolicy Bypass -WindowStyle Hidden -File "<script path>". Then start it and confirm exactly one copy is running.

    5. Tell me how to turn it off later.

    ```

     

    Hopefully Microsoft fixes the underlying bug. Until then, this saves a trip to Task Manager.

  • Graysonmo's avatar
    Graysonmo
    Brass Contributor

    If a bug is reported, Microsoft may be aware, and updates may fix it.