Official x64 portable 1.24.12741.0; also reproduced in an x64 Release build of main commit 5f7dc283013152f89bfb76950515c33f45157ad7 (checked out 2026-11-10).
Windows build number
Windows 11 25H2, 10.0.26200.9711.
Other Software
Microsoft Korean IME; Windows PowerShell with -NoProfile. No Claude Code or session-management plugin is required. Automated tests used AutoHotkey 2.0.31 letter scan codes and VK_HANGUL; actual received text was logged.
Steps to reproduce
This is intermittent: the procedure does not fail on every launch.
Select Microsoft Korean IME. In one Terminal process, create two windows: A with three tabs, B with two.
In each tab, run a simple input receiver. The receiver.ps1 code below records lines without evaluating them as commands: powershell.exe -NoProfile -File <absolute-path-to-receiver.ps1> -OutputPath <unique-log-path-for-this-tab>.
For each tab, click the other window and return. Press Hangul, type the letter keys g k s r m f (do not paste), then Space and Enter. Repeat the other-window round trip, Hangul toggle and letter input once more.
Keep those windows alive and create another pair with the same 3+2 tab arrangement. Repeat for four pairs, testing each newly created tab.
On an affected tab, compare switching to a working tab in the same window and back against switching to another window and back.
The recorded experiment automated these operations. The steps above describe the equivalent manual procedure, not a separate physical-key experiment.
Input receiver used in the experiment — full source
Save this code locally as receiver.ps1, then run it in each tab as described in step 2, using a different output log path for each tab. Stop with Ctrl+C.
param([Parameter(Mandatory)][string]$OutputPath)
$ErrorActionPreference = 'Stop'
[Console]::OutputEncoding = [Text.UTF8Encoding]::new($false)
Write-Host 'IME laboratory: input is recorded, NEVER evaluated as commands.'
Write-Host 'Physical-key sequence gksrmf should produce Korean or Latin text.'
$sequence = 0
while ($true) {
$line = [Console]::ReadLine()
if ($null -eq $line) { break }
$sequence++
$record = [ordered]@{ time = (Get-Date).ToString('o'); sequence = $sequence; text = $line; pid = $PID }
[IO.File]::AppendAllText($OutputPath, (($record | ConvertTo-Json -Compress) + "`n"), [Text.UTF8Encoding]::new($false))
Write-Host ('RECORDED ' + $sequence + ': ' + $line)
}
Expected Behavior
The two toggles should allow both Korean and English input: the same letter keys produce 한글 and gksrmf in the corresponding modes.
Actual Behavior
Some tabs remain English-only after both toggle attempts. In an affected official-binary tab, a same-window tab round trip temporarily restored Korean input; an other-window round trip broke it again.
Same-source comparison: both layouts use the commit above and identical executable/resources except for Microsoft.Terminal.Control.dll.
Control implementation
Failed tabs
Failures by 5-tab round
Original
7/20
2, 2, 2, 1
Proposed owner-scoped lookup
0/20
0, 0, 0, 0
All 40 cases had complete text records and owned focus at every observation. Each variant retained its earlier windows in a single process; these correlated counts are not a general failure-rate estimate.
Representative B1 input records (trailing commit spaces omitted here):
Original receiver log excerpts, including timestamps
These are the two recorded lines from each selected tab; trailing commit spaces are preserved. The pid fields identify the PowerShell receivers, not the Terminal processes.
Evidence for the cause: a separate read-only observation of official 1.24.12741.0, using its matching Microsoft PDB, found:
During failure in B2
HWND
Focused InputSite / owning top-level window
655948 / 4327538
Active provider's cached InputSite / its top-level window
985516 / 5179234 (A3)
Both windows shared process 20900 and UI thread 46620. The observer read memory/window identities without injecting a DLL or invoking TSF methods. This cache observation belongs to the official-binary experiment, not the source-built comparison above.
TsfDataProvider::GetHwnd() caches the result of FindWindowOfActiveTSF(), which takes the first enumerated document manager's view without checking the control's owner. The cross-window cached handle is directly observed; the exact initialization ordering that first selects it has not been isolated.
Proposed contribution: resolve the InputSite descendant under OwningHwnd() on each call, returning the owner when no InputSite exists yet. This avoids retaining a stale handle or borrowing another window's TSF context. The app builds, and all 34 Control tests pass, including five new owner/lifetime tests. I would like to submit the fix and tests; is this approach appropriate?
TAEF output for the complete Control suite:
Summary: Total=34, Passed=34, Failed=0, Blocked=0, Not Run=0, Skipped=0
Scope: automated keys on one PC/OS/Korean IME; no actual UI tab-drag, split-pane or other-IME regression test. Reparenting/recreation coverage is helper-level only. Zero failures in this run does not establish universal correctness. Similar Pinyin report #20481 has not been established as the same defect.
The relevant results and representative logs are included above. Full local logs and the automated harness have been retained and can be provided if needed.
AI disclosure: Automation, analysis, implementation and report preparation were AI-assisted. I personally observed the automated reproduction and checked the results.