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#20472

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 3 commits intomainfromfix-default-pty-buffer-size-on-wind
Oct 25, 2025

Conversation

@fioan89
Copy link
Collaborator

@fioan89fioan89 commentedOct 24, 2025
edited
Loading

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.

Fixes:#20468

Resolved an invalid parameter error (-2147024809) during PTY creation onWindows 11 22H2 (but not only) when connecting via JetBrains Toolbox.CreatePseudoConsole doesn't accept a 0x0 (zero width and zero height)console size. Toolbox uses the default native client which apparentlysends the width and height set to 0 in ssh req opts.Unfortunately, there is NO explicit documentation in the officialMicrosoft documentation that states the minimum valid values or explicitlyprohibits 0x0.Looking at real-world implementations in the search results, all examplesuse reasonable non-zero values.I tested this with a local Windows VM registered to dev.coder.comi.e. externally managed workspace.Fixes:#20468
@github-actions
Copy link

github-actionsbot commentedOct 24, 2025
edited
Loading

All contributors have signed the CLA ✍️ ✅
Posted by theCLA Assistant Lite bot.

@fioan89fioan89 changed the titlefix: pseudo console initialization for SSH sessionsfix: initialize pseudo console with default size for SSH sessionsOct 24, 2025
@fioan89
Copy link
CollaboratorAuthor

I have read the CLA Document and I hereby sign the CLA

cdrci2 added a commit to coder/cla that referenced this pull requestOct 24, 2025
@deansheatherdeansheather merged commitb890930 intomainOct 25, 2025
30 checks passed
@deansheatherdeansheather deleted the fix-default-pty-buffer-size-on-wind branchOctober 25, 2025 03:05
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsOct 25, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

@deansheatherdeansheatherdeansheather approved these changes

@spikecurtisspikecurtisAwaiting requested review from spikecurtis

@f0sself0sselAwaiting requested review from f0ssel

Assignees

@fioan89fioan89

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

bug: JetBrains Toolbox fails to connect to Windows VM – PTY creation error (-2147024809)

3 participants

@fioan89@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp