feat: Add configurable runtime support for issue resolver and fix: Kubernetes pod naming limits (#9877)

This commit is contained in:
Cansu
2025-07-24 00:12:36 +02:00
committed by GitHub
parent fbd9280239
commit 2ef518f063
3 changed files with 30 additions and 3 deletions

View File

@@ -149,6 +149,7 @@ class IssueResolver:
args.base_container_image,
args.runtime_container_image,
args.is_experimental,
args.runtime,
)
self.owner = owner
@@ -182,9 +183,11 @@ class IssueResolver:
base_container_image: str | None,
runtime_container_image: str | None,
is_experimental: bool,
runtime: str | None = None,
) -> OpenHandsConfig:
config.default_agent = 'CodeActAgent'
config.runtime = 'docker'
# Use provided runtime or fallback to config value or default to 'docker'
config.runtime = runtime or config.runtime or 'docker'
config.max_budget_per_task = 4
config.max_iterations = max_iterations

View File

@@ -45,6 +45,12 @@ def main() -> None:
default=None,
help='Container image to use.',
)
parser.add_argument(
'--runtime',
type=str,
default=None,
help='Runtime environment to use (default: docker).',
)
parser.add_argument(
'--max-iterations',
type=int,