Skip to content

Add short timeout to health checks to prevent sidebar hanging - #97

Merged
tishachawla-jg merged 1 commit into
theagentplane:mainfrom
HeaTTap:fix-sidebar-health-timeout
Sep 4, 2026
Merged

Add short timeout to health checks to prevent sidebar hanging#97
tishachawla-jg merged 1 commit into
theagentplane:mainfrom
HeaTTap:fix-sidebar-health-timeout

Conversation

@HeaTTap

@HeaTTap HeaTTap commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #86

Summary
Add a configurable timeout parameter (default 2.0s) to fetch_agent_card, fetch_agent_card_sync, check_health, and check_health_sync. This prevents the Chat sidebar from blocking for 20s when local agent servers are offline.

Changes

  • Add timeout parameter defaulting to 2.0s in examples/a2a/server.py and examples/a2a/client.py
  • Add unit tests in tests/test_a2a_health.py verifying timeout propagation and error handling
  • Update CHANGELOG.md under Unreleased

@tishachawla-jg
tishachawla-jg merged commit b224f9b into theagentplane:main Sep 4, 2026
0 of 3 checks passed
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.

Chat sidebar health check has no short timeout, feels slow when servers aren't up

2 participants