Fix sandbox cmd timeout by enforcing SDK request timeout (not payload field)#113
Draft
Copilot wants to merge 2 commits into
Draft
Fix sandbox cmd timeout by enforcing SDK request timeout (not payload field)#113Copilot wants to merge 2 commits into
cmd timeout by enforcing SDK request timeout (not payload field)#113Copilot wants to merge 2 commits into
Conversation
Copilot
AI
changed the title
[WIP] Fix cmd command timeout functionality in SDK
Fix sandbox Jun 2, 2026
cmd timeout by enforcing SDK request timeout (not payload field)
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.
cmdexposed atimeoutparameter in Python SDK, but the underlying/processes/cmdAPI does not define that field, so timeout was effectively not enforced. This change moves timeout handling to the SDK transport layer to provide actual client-side truncation semantics.Problem alignment
timeoutin/processes/cmdrequest body.cmd(..., timeout=...)API surface while making it effective.Implementation
agentrun/sandbox/api/__aio_data_async_template.pyagentrun/sandbox/api/__code_interpreter_data_async_template.pyagentrun/sandbox/api/aio_data.pyagentrun/sandbox/api/code_interpreter_data.pycmd/cmd_asyncnow passConfig(timeout=timeout)intopost/post_async(config=), instead of serializingtimeoutinto request body.Behavioral change
timeoutnow controls HTTP request timeout at the SDK client layer.timeout=Nonekeeps previous “no explicit cmd timeout override” behavior (no per-call timeout config injected).