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

Fix a ConPTY startup hang with 0-param DA1 responses #18681

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Mar 12, 2025

Since WaitForDA1 would wait until _deviceAttributes is non-zero,
we must ensure it's actually non-zero at the end of this handler,
even if there are no parameters.

Validation Steps Performed

  • Mod the Terminal DA1 to be \x1b[?6c. No hang ✅
  • Mod the Terminal DA1 to be \x1b[?61c. No hang ✅

@lhecker lhecker added Product-Conpty For console issues specifically related to conpty Area-Input Related to input processing (key presses, mouse, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) labels Mar 12, 2025
@DHowett DHowett merged commit 32ae00f into main Mar 12, 2025
19 checks passed
@DHowett DHowett deleted the dev/lhecker/conpty-startup-hang branch March 12, 2025 23:29
DHowett pushed a commit that referenced this pull request Mar 12, 2025
Since `WaitForDA1` would wait until `_deviceAttributes` is non-zero,
we must ensure it's actually non-zero at the end of this handler,
even if there are no parameters.

## Validation Steps Performed
* Mod the Terminal DA1 to be `\x1b[?6c`. No hang ✅
* Mod the Terminal DA1 to be `\x1b[?61c`. No hang ✅

(cherry picked from commit 32ae00f)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgYO0bA
Service-Version: 1.22
DHowett pushed a commit that referenced this pull request Mar 12, 2025
Since `WaitForDA1` would wait until `_deviceAttributes` is non-zero,
we must ensure it's actually non-zero at the end of this handler,
even if there are no parameters.

## Validation Steps Performed
* Mod the Terminal DA1 to be `\x1b[?6c`. No hang ✅
* Mod the Terminal DA1 to be `\x1b[?61c`. No hang ✅

(cherry picked from commit 32ae00f)
Service-Card-Id: PVTI_lADOAF3p4s4AxadtzgYO0a4
Service-Version: 1.23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Input Related to input processing (key presses, mouse, etc.) Issue-Bug It either shouldn't be doing this or needs an investigation. Priority-3 A description (P3) Product-Conpty For console issues specifically related to conpty
Projects
Status: Cherry Picked
Status: Cherry Picked
Development

Successfully merging this pull request may close these issues.

3 participants