You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Xcode: open reported 'host closed the connection' but worked; Organizer window inventory and AX tree incomplete #244
Two things from driving Xcode 26's Organizer while uploading an archive to App Store Connect (2026-11-03):
desktop_open of an .xcarchive returned "host closed the connection", but Xcode opened the archive in the Organizer anyway. A later desktop_open of a second archive returned completed with created_windows: [] (it reused the Organizer window). The connection error suggests the action may not have happened, when it did.
Window inventory and inspection are partial for Xcode.desktop_open and desktop_windows report window_inventory_completeness: partial ("Accessibility window enrichment was incomplete; returning verified CG inventory") and observation_capability: unknown for the Archives window. Earlier in the same session, desktop_inspect of that window came back with an incomplete AX tree while the Distribute sheet was mid-flow ("Selecting account…", "Preparing"), and a pixel snapshot didn't show the sheet. Later inspections of the same window were complete.
Repro: with Xcode running and its Organizer closed, desktop_open an .xcarchive. Then desktop_inspect the Archives window while Distribute App → App Store Connect is preparing.
"host closed the connection": this was the host crashing. Crash reports show HIToolbox asserting its queue in TSMGetInputSourceProperty, called off the main thread from Mac.systemState() (the app inventory). The same crash appears in 0.20.0 on 2026-11-07. Fixed in Host: keyboard layout read on the main thread; a call cut off mid-action is unknown (#244) #248, which also makes the MCP server report a connection lost mid-action as unknown (HOST_CONNECTION_LOST) instead of a plain error.
Not reproduced: Xcode's inventory_completeness: partial / "Accessibility window enrichment was incomplete" while Distribute is preparing. That warning means Accessibility returned errors partway through reading Xcode's windows, which fits Xcode being busy. Without an archive mid-distribution I couldn't reproduce it or tell whether a retry would help, so it's unchanged. If it happens again, the inventory_warnings and a verbose desktop_windows result would show which read failed.
Activity
iamnbutler commentedon Nov 12, 2026
Fix train update:
TSMGetInputSourceProperty, called off the main thread fromMac.systemState()(the app inventory). The same crash appears in 0.20.0 on 2026-11-07. Fixed in Host: keyboard layout read on the main thread; a call cut off mid-action is unknown (#244) #248, which also makes the MCP server report a connection lost mid-action asunknown(HOST_CONNECTION_LOST) instead of a plain error.inventory_completeness: partial/ "Accessibility window enrichment was incomplete" while Distribute is preparing. That warning means Accessibility returned errors partway through reading Xcode's windows, which fits Xcode being busy. Without an archive mid-distribution I couldn't reproduce it or tell whether a retry would help, so it's unchanged. If it happens again, theinventory_warningsand a verbosedesktop_windowsresult would show which read failed.Host: read the keyboard layout on the main thread; a call cut off mid…