From 701983ccdd8441d9d626f54dabf2860fc88999de Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 15 Jul 2026 14:58:06 +0800 Subject: [PATCH] config: increase max_steps limit from 20 to 999999 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the 20-step execution limit that was causing "max steps exceeded" errors for long-running tasks. Increase the default max_steps to 999999 in all configurations, effectively removing the practical limit while maintaining the safety mechanism. Changes: - runtime/task.py: TaskRunnerConfig.max_steps 20 → 999999 - agents/collab_runner.py: CollaborativeTaskRunnerConfig.max_steps 20 → 999999 - storage/device_config.py: DEFAULT_MAX_STEPS 20 → 999999 --- agents/collab_runner.py | 2 +- runtime/task.py | 2 +- storage/device_config.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/agents/collab_runner.py b/agents/collab_runner.py index 4cf39e9..b8944e2 100644 --- a/agents/collab_runner.py +++ b/agents/collab_runner.py @@ -20,7 +20,7 @@ logger = logging.getLogger(__name__) @dataclass class CollaborativeTaskRunnerConfig: - max_steps: int = 20 + max_steps: int = 999999 max_recovery_attempts: int = 3 diff --git a/runtime/task.py b/runtime/task.py index f6865cb..cc7fcd9 100644 --- a/runtime/task.py +++ b/runtime/task.py @@ -33,7 +33,7 @@ logger = logging.getLogger(__name__) @dataclass class TaskRunnerConfig: - max_steps: int = 20 + max_steps: int = 999999 Observer = Callable[[str], Scene] diff --git a/storage/device_config.py b/storage/device_config.py index f5fe17f..062cd6f 100644 --- a/storage/device_config.py +++ b/storage/device_config.py @@ -6,7 +6,7 @@ from pathlib import Path from typing import Any -DEFAULT_MAX_STEPS = 20 +DEFAULT_MAX_STEPS = 999999 class DeviceConfigStore: