fix(gateway): honor tty flag for interactive exec#2315
Open
emonq wants to merge 1 commit into
Open
Conversation
Pass the requested TTY mode through the interactive SSH relay. Skip PTY allocation and resize forwarding when TTY is disabled, and add regression coverage for both modes. Signed-off-by: emonq <emonq@outlook.com>
emonq
requested review from
a team,
derekwaynecarr,
maxamillion and
mrunalp
as code owners
July 16, 2026 14:24
|
All contributors have signed the DCO ✍️ ✅ |
Author
|
I have read the DCO document and I hereby sign the DCO. |
Author
|
recheck |
Collaborator
PR Review StatusValidation: This is a focused gateway bug fix for confirmed issue #2228. It honors the existing Review findings:
Docs: No Fern update is needed; this restores behavior already documented by the protobuf contract and the existing Next state: |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Honor the requested TTY mode throughout the interactive SSH relay. When TTY is disabled, the gateway skips PTY allocation and ignores resize events, preserving pipe-based execution semantics.
Related Issue
Fixes #2228
Changes
ExecSandboxRequest.ttythrough the interactive exec relay.tty=true.tty=falseand TTY-backed withtty=true.Testing
mise run pre-commitall passed.cargo test -p openshell-server interactive_exec --lib— 10 passed.e2e/python/test_sandbox_api.py::test_sandbox_interactive_exec_honors_ttyagainst a Docker-backed gateway — 1 passed.cargo fmt --all -- --check— passed.Ruff format and lint checks — passed.
mise run pre-commitpassesUnit tests added/updated — existing focused unit tests passed; behavior is covered by E2E.
E2E tests added/updated (if applicable)
Checklist