Skip to content

ssh2: add missing term property to PseudoTtyInfo - #75339

Open
pckilgore wants to merge 2 commits into
DefinitelyTyped:masterfrom
pckilgore:fix-ssh2-pseudottyinfo-term
Open

ssh2: add missing term property to PseudoTtyInfo#75339
pckilgore wants to merge 2 commits into
DefinitelyTyped:masterfrom
pckilgore:fix-ssh2-pseudottyinfo-term

Conversation

@pckilgore

@pckilgore pckilgore commented Aug 1, 2026

Copy link
Copy Markdown

Summary

PseudoTtyInfo (emitted on a Session's 'pty' event) is missing the term property.

ref:
https://github.com/mscdex/ssh2/blob/master/lib/protocol/handlers.misc.js#L1092-L1116

Added $ExpectType coverage in ssh2-tests.ts on the existing example server's session.once("pty", ...) handler (that block previously only exercised "exec", nothing touched pty/term at all) so a future regression on any PseudoTtyInfo field gets caught.

ssh2's server-side pty-req handler builds `{ term, cols, rows, width, height, modes }` (see lib/protocol/handlers.misc.js), but PseudoTtyInfo was missing `term`.
@pckilgore
pckilgore requested a review from rbuckton as a code owner August 1, 2026 05:50
@typescript-automation

typescript-automation Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

@pckilgore Thank you for submitting this PR!

This is a live comment that I will keep updated.

1 package in this PR

Code Reviews

Because this is a widely-used package, a DT maintainer will need to review it before it can be merged.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • 🕐 Most recent commit is approved by a DT maintainer

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.

Inactive

This PR has been inactive for 12 days.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 75339,
  "author": "pckilgore",
  "headCommitOid": "60867b02bc2317c6dd66f9b0a1e2e1d7c1df3783",
  "mergeBaseOid": "d1681105afb72067bf9dbd2ecfb7f400cb45ac5e",
  "lastPushDate": "2026-08-01T05:50:18.000Z",
  "lastActivityDate": "2026-08-02T11:12:09.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "tooManyCommits": false,
  "tooManyReviews": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "ssh2",
      "kind": "edit",
      "files": [
        {
          "path": "types/ssh2/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/ssh2/ssh2-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "tkQubo",
        "rbuckton",
        "wrboyce",
        "hengkx",
        "bragle",
        "LucianBuzzo",
        "dhensby"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "changereq",
      "reviewer": "dhensby",
      "date": "2026-08-02T11:12:09.000Z"
    },
    {
      "type": "approved",
      "reviewer": "bragle",
      "date": "2026-08-01T14:11:38.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 5150062181,
  "ciResult": "pass"
}

@typescript-automation

Copy link
Copy Markdown
Contributor

🔔 @tkqubo @rbuckton @wrboyce @hengkx @bragle @LucianBuzzo @dhensby — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-automation typescript-automation Bot removed the Untested Change This PR does not touch tests label Aug 1, 2026
@typescript-automation typescript-automation Bot moved this from Waiting for Code Reviews to Needs Maintainer Review in Pull Request Status Board Aug 1, 2026

@bragle bragle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@typescript-automation typescript-automation Bot added the Owner Approved A listed owner of this package signed off on the pull request. label Aug 1, 2026
Comment thread types/ssh2/ssh2-tests.ts
@typescript-automation typescript-automation Bot added Revision needed This PR needs code changes before it can be merged. and removed Owner Approved A listed owner of this package signed off on the pull request. labels Aug 2, 2026
@typescript-automation

Copy link
Copy Markdown
Contributor

@pckilgore One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you!

@typescript-automation typescript-automation Bot moved this from Needs Maintainer Review to Needs Author Action in Pull Request Status Board Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Revision needed This PR needs code changes before it can be merged.

Projects

Status: Needs Author Action

Development

Successfully merging this pull request may close these issues.

3 participants