add sandbox backend sessionid params#161
Open
huabowen001 wants to merge 1 commit intoagent-infra:mainfrom
Open
add sandbox backend sessionid params#161huabowen001 wants to merge 1 commit intoagent-infra:mainfrom
huabowen001 wants to merge 1 commit intoagent-infra:mainfrom
Conversation
choices302-cyber
approved these changes
Apr 3, 2026
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.
Title:
Add sessionId parameter to sandbox backend to support multiple terminal sessions
Description:
This PR introduces a new sessionId parameter for the sandbox backend, allowing clients to open and manage multiple terminal instances concurrently using distinct session identifiers.
Motivation:
Previously, the sandbox backend did not support session differentiation, which made it impossible to run multiple independent terminal sessions simultaneously. This change enables better isolation and concurrency for users needing to work with several terminals at once.
Changes:
Added sessionId as a required/optional parameter in the sandbox backend requests
Updated terminal session handling logic to key sessions by sessionId
Ensured session isolation so that different sessionId values result in separate terminal environments
Impact:
Backward compatible (if sessionId is optional and defaults to a single session behavior)
Enables frontend or CLI clients to open multiple terminals by passing different sessionId values