Skip to content

console_relay: add relay_console_pipe for server-side pipe relay#3044

Merged
benhillis merged 1 commit intomicrosoft:mainfrom
benhillis:user/benhill/console_relay_pipe
Mar 18, 2026
Merged

console_relay: add relay_console_pipe for server-side pipe relay#3044
benhillis merged 1 commit intomicrosoft:mainfrom
benhillis:user/benhill/console_relay_pipe

Conversation

@benhillis
Copy link
Member

Extract the stdio relay logic into a shared relay_stdio helper, and add a new relay_console_pipe entry point that accepts an already-connected pipe handle. This is useful when the caller is the named pipe server (e.g., HCS sample) rather than the client.

relay_console now delegates to relay_stdio as well, keeping the relay logic in one place.

Extract the stdio relay logic into a shared relay_stdio helper, and
add a new relay_console_pipe entry point that accepts an already-connected
pipe handle. This is useful when the caller is the named pipe server
(e.g., HCS sample) rather than the client.

relay_console now delegates to relay_stdio as well, keeping the relay
logic in one place.
@benhillis benhillis requested a review from a team as a code owner March 18, 2026 16:43
Copilot AI review requested due to automatic review settings March 18, 2026 16:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors console relay functionality in support/console_relay by extracting the shared stdio relay logic into a helper (relay_stdio) and adding a Windows-only entry point (relay_console_pipe) for relaying over an already-connected named pipe (server-side scenarios).

Changes:

  • Extract common stdin/stdout relay logic into relay_stdio.
  • Update relay_console to delegate to relay_stdio.
  • Add relay_console_pipe (Windows-only) to relay using an already-connected pipe handle.

You can also share your feedback on Copilot code review. Take the survey.

@benhillis
Copy link
Member Author

copilot review comments are pre-existing behavior, should address these as follow-ups if needed

@benhillis benhillis enabled auto-merge (squash) March 18, 2026 17:03
@github-actions
Copy link

@benhillis benhillis disabled auto-merge March 18, 2026 19:45
@benhillis benhillis merged commit e879a3e into microsoft:main Mar 18, 2026
57 of 60 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.

3 participants