Skip to content

fix(zarvis): time out idle provider turns#147

Merged
edwin-zvs merged 1 commit into
mainfrom
fix-zarvis-provider-watchdog
May 22, 2026
Merged

fix(zarvis): time out idle provider turns#147
edwin-zvs merged 1 commit into
mainfrom
fix-zarvis-provider-watchdog

Conversation

@edwin-zvs

@edwin-zvs edwin-zvs commented May 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a zarvis provider idle watchdog around model turns
  • route both interactive and headless provider calls through the watchdog
  • add regression tests for hung provider completion and disabled timeout

Behavior

If a provider turn produces no visible text/reasoning and never completes, zarvis now emits a provider error instead of staying permanently Running. The default idle timeout is 600s (10 minutes) and can be disabled with AGENTD_ZARVIS_PROVIDER_IDLE_TIMEOUT_SECS=0.

Tests

  • cargo test -p agentd-adapter-zarvis provider_watchdog -- --nocapture
  • cargo check -p agentd-adapter-zarvis
  • cargo test -p agentd-adapter-zarvis
  • cargo build

@edwin-zvs
edwin-zvs force-pushed the fix-zarvis-provider-watchdog branch from 91dbf94 to 3e3c47a Compare May 22, 2026 21:15
@edwin-zvs
edwin-zvs merged commit ba19c73 into main May 22, 2026
1 of 2 checks passed
@edwin-zvs
edwin-zvs deleted the fix-zarvis-provider-watchdog branch May 22, 2026 21:22
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.

1 participant