Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: initialize pseudo console with default size for SSH sessions [2.27]#20490

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deansheather merged 1 commit intorelease/2.27fromdean/backport-win-pty-fix-2.27
Oct 28, 2025

Conversation

@deansheather
Copy link
Member

Resolved an invalid parameter error (-2147024809) during PTY creation on Windows 11 22H2 (but not only) when connecting via JetBrains Toolbox which spawns the native SSH client with-tt forcing PTY allocation even though there is no "terminal" on the client side to query its size.

CreatePseudoConsole doesn't accept a 0x0 (zero width and zero height) console size and unfortunately, there is NO explicit documentation in the official Microsoft documentation that states the minimum valid values or explicitly prohibits 0x0.

Looking at real-world implementations in the search results, all examples use reasonable non-zero values.

I tested this with a local Windows VM registered to dev.coder.com i.e. externally managed workspace.

Relates to#20468

…0472)Resolved an invalid parameter error (-2147024809) during PTY creation onWindows 11 22H2 (but not only) when connecting via JetBrains Toolboxwhich spawns the native SSH client with `-tt` forcing PTY allocationeven though there is no "terminal" on the client side to query its size.CreatePseudoConsole doesn't accept a 0x0 (zero width and zero height)console size and unfortunately, there is NO explicit documentation inthe official Microsoft documentation that states the minimum validvalues or explicitly prohibits 0x0.Looking at real-world implementations in the search results, allexamples use reasonable non-zero values.I tested this with a local Windows VM registered to dev.coder.com i.e.externally managed workspace.Fixes:#20468(cherry picked from commitb890930)
@deansheatherdeansheather merged commit035ad33 intorelease/2.27Oct 28, 2025
31 of 32 checks passed
@deansheatherdeansheather deleted the dean/backport-win-pty-fix-2.27 branchOctober 28, 2025 11:47
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 28, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@fioan89fioan89fioan89 approved these changes

@stirbystirbyAwaiting requested review from stirby

Assignees

@deansheatherdeansheather

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@deansheather@fioan89

[8]ページ先頭

©2009-2025 Movatter.jp