Skip to content

Fix automation timeout budget handling#206

Open
malhotra5 wants to merge 1 commit into
mainfrom
fix-automation-timeout-budgets
Open

Fix automation timeout budget handling#206
malhotra5 wants to merge 1 commit into
mainfrom
fix-automation-timeout-budgets

Conversation

@malhotra5

@malhotra5 malhotra5 commented Jun 23, 2026

Copy link
Copy Markdown
Member

Summary

  • separate logical automation timeout from the outer agent-server bash command timeout
  • add a configurable grace period for the bash command timeout
  • pass the extended bash timeout through dispatch/execution without changing the user-facing watchdog deadline
  • simplify watchdog behavior to only process stale runs while preserving human-readable timeout/failure details

Fixes #203.

Tests

  • uv run ruff check openhands/automation tests/test_config.py tests/test_schemas.py tests/test_router.py tests/test_watchdog.py tests/test_backends.py tests/test_disable_automation.py tests/test_execution.py
  • uv run pytest tests/test_config.py tests/test_schemas.py tests/test_backends.py tests/test_execution.py -q

DB-backed router/watchdog tests were not run locally because this environment does not provide the Docker daemon required by testcontainers.


This PR was updated by an AI agent (OpenHands) on behalf of the user.

@github-actions

github-actions Bot commented Jun 23, 2026

Copy link
Copy Markdown

Coverage

Co-authored-by: openhands <openhands@all-hands.dev>
@malhotra5 malhotra5 force-pushed the fix-automation-timeout-budgets branch from 4901f04 to 8494cea Compare June 23, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preset automation runs leave no cleanup/callback on hard termination (SIGTERM/timeout) — add graceful termination hook

2 participants