fix: increase default timeout for code execution sandbox
- Updated the default timeout for sandbox script execution from 120 seconds to 300 seconds (5 minutes) to allow longer-running scripts. - Enhanced comments in the code execution tool to clarify the timeout duration. - Suppressed stdout and stderr output from internal tool handlers during execution to prevent clutter in the CLI interface.
This commit is contained in:
parent
273b367f05
commit
3b90fa5c9b
2 changed files with 16 additions and 6 deletions
2
cli.py
2
cli.py
|
|
@ -136,7 +136,7 @@ def load_cli_config() -> Dict[str, Any]:
|
|||
"timeout": 120, # Seconds to wait for a clarify answer before auto-proceeding
|
||||
},
|
||||
"code_execution": {
|
||||
"timeout": 120, # Max seconds a sandbox script can run before being killed
|
||||
"timeout": 300, # Max seconds a sandbox script can run before being killed (5 min)
|
||||
"max_tool_calls": 50, # Max RPC tool calls per execution
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue