Skip to content

add sandbox backend sessionid params#161

Open
huabowen001 wants to merge 1 commit intoagent-infra:mainfrom
huabowen001:feature/add-deepagent-sandbox-backend-sessionid
Open

add sandbox backend sessionid params#161
huabowen001 wants to merge 1 commit intoagent-infra:mainfrom
huabowen001:feature/add-deepagent-sandbox-backend-sessionid

Conversation

@huabowen001
Copy link
Copy Markdown

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

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.

2 participants