Skip to content

fix(ssh): support interactive PTY sessions and optional X11 forwarding - #80

Merged
anikitenko merged 2 commits into
mainfrom
fix/advanced-ssh-support
Oct 18, 2026
Merged

anikitenko merged 2 commits into
mainfrom
fix/advanced-ssh-support

Conversation

@anikitenko

Copy link
Copy Markdown
Owner

Add typed terminal sessions with bounded byte streaming, input, resizing, cancellation, and lifecycle cleanup. Preserve exec/start behavior and require explicit terminal and X11 authorization.

Include host adapter references, plugin example, tests, and FDO integration handoff. Compatible host wiring is required.

Add typed terminal sessions with bounded byte streaming, input,
resizing, cancellation, and lifecycle cleanup. Preserve exec/start
behavior and require explicit terminal and X11 authorization.

Include host adapter references, plugin example, tests, and FDO
integration handoff. Compatible host wiring is required.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T12:55:15.800159Z 9187496 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Report

Metric Percent
Lines 93.73%
Statements 91.86%
Functions 94.78%
Branches 85.07%

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 91874967e7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/utils/sshTerminal.ts Outdated
};
void opening.then(value => { if (stopped) closeLate(value); }, () => {});
try {
host = await Promise.race([opening, localEnd.then(() => fail('CANCELLED'))]);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Wake pending opens when host services are replaced

When configureHostServices(null) or a replacement configuration runs while openSSHTerminal() is still pending, this open has not yet been added to activeResources, and this race only observes the adapter promise and an explicit abort. Without an aborted caller signal, the returned openTerminal() promise can therefore remain pending indefinitely, even though the old transport is no longer current, and any eventual host session is not closed until the adapter finally resolves. Register pending opens for host-service lifecycle cleanup or race them against configuration invalidation.

Useful? React with 👍 / 👎.

@anikitenko
anikitenko merged commit 71ce9b5 into main Oct 18, 2026
3 checks passed
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.

1 participant