AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

Feature Request: configurable Python execution timeout

Open Fronut opened this issue 7 months ago • 0 comments

Problem\n\nAstrBot's `astrbot_execute_python` tool has a hardcoded 30-second timeout for `subprocess.run`, with no way to configure it without modifying source code.\n\n## Proposed Solution\n\nAdd a `python_exec_timeout` setting (default 30s) to `provider_settings` that controls the timeout for local Python execution. Expose it in the WebUI under Agent Computer Use config.\n\n## Scope\n\n- Affects only local Python execution (`astrbot_execute_python`); sandbox IPython is unchanged.\n- Implementation: read from config, pass to existing `timeout` parameter in `LocalPythonComponent.exec`.

Fronut avatar May 01 '26 06:05 Fronut