Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align the OSS ConPTY API with Windows 11 24H2 #17704

Merged
merged 2 commits into from
Aug 14, 2024
Merged

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Aug 12, 2024

This removes ClosePseudoConsoleTimeout as waiting for conhost
to exit is prone to deadlocks due to incorrect API usage.
Additionally, this publicly exposes ReleasePseudoConsole.

@lhecker lhecker added Product-Conpty For console issues specifically related to conpty Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. labels Aug 12, 2024
Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@DHowett
Copy link
Member

DHowett commented Aug 13, 2024

Tests are broken ;)

@DHowett DHowett merged commit 7fd9c5c into main Aug 14, 2024
20 checks passed
@DHowett DHowett deleted the dev/lhecker/winconpty-api branch August 14, 2024 20:15
DHowett pushed a commit that referenced this pull request Aug 21, 2024
(cherry picked from commit 7fd9c5c)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmszgSGCkE
Service-Version: 1.21
cristianadam pushed a commit to cristianadam/qt-creator that referenced this pull request Jan 7, 2025
Windows 11 24H2 changed the underlying implementation and the
"ClosePseudoConsole" code that we copied from the Terminal application
didn't work as it did before.

The new Terminal releases also removes the WaitForSingleObject call.
See microsoft/terminal#17704

We cannot rely on the ConPty API since it doesn't send the "--
resizeQuirk" parameter to "conhost.exe", and the QTCREATORBUG-30007
would be resurrected.

Fixes: QTCREATORBUG-32192
Change-Id: Ie21833a1eb21acd0ba21109f3dbc28595b0d94a4
qtprojectorg pushed a commit to qt-creator/qt-creator that referenced this pull request Jan 7, 2025
Windows 11 24H2 changed the underlying implementation and the
"ClosePseudoConsole" code that we copied from the Terminal application
didn't work as it did before.

The new Terminal releases also removes the WaitForSingleObject call.
See microsoft/terminal#17704

We cannot rely on the ConPty API since it doesn't send the "--
resizeQuirk" parameter to "conhost.exe", and the QTCREATORBUG-30007
would be resurrected.

Fixes: QTCREATORBUG-32192
Change-Id: Ie21833a1eb21acd0ba21109f3dbc28595b0d94a4
Reviewed-by: Marcus Tillmanns <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CodeHealth Issues related to code cleanliness, linting, rules, warnings, errors, static analysis, etc. Product-Conpty For console issues specifically related to conpty
Projects
Development

Successfully merging this pull request may close these issues.

3 participants