Skip to content

Conversation

@lhecker
Copy link
Member

@lhecker lhecker commented Dec 15, 2025

This PR contains my spin on #831. The difference is it wraps any input as Buffer first and lacks a _writeInProgress field. This fixes a bug in #831 where the written callback parameter is used to slice string arguments even though it's probably meant for byte counts.

@deepak1556 deepak1556 requested a review from Tyriar December 15, 2025 20:00
@deepak1556 deepak1556 added this to the December / January 2026 milestone Dec 15, 2025
@Tyriar Tyriar mentioned this pull request Dec 16, 2025
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

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

Seems to bring back the notorious interleaving bug:

Image

@Tyriar Tyriar self-assigned this Dec 17, 2025
@Tyriar
Copy link
Member

Tyriar commented Dec 17, 2025

Seems to bring back the notorious interleaving bug:

Image

This is only for cooked mode, will follow that up in new PR #833 (comment)

@Tyriar Tyriar enabled auto-merge December 17, 2025 12:55
@lhecker
Copy link
Member Author

lhecker commented Dec 17, 2025

Thanks for fixing up my PR!

@Tyriar Tyriar merged commit a0ce44f into microsoft:main Dec 17, 2025
5 checks passed
Tyriar added a commit to microsoft/vscode that referenced this pull request Dec 19, 2025
Brings in further improvements to handling of write backpressure. After
this we no longer throttle at all which means that for older versions of
bash at least on macOS interleaving is possible, but pasting and sending
should be near instantaneous for any reasonable amount of text. I
measured zsh injesting 5mb of data in ~14 seconds.

See:

- microsoft/node-pty#835
- microsoft/node-pty#837
- microsoft/node-pty#839

Part of #246204, #283056
@Tyriar Tyriar modified the milestones: December / January 2026, 1.1.0 Dec 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants