Repository navigation
Description
Summary
Remote A2A agents (URLs configured under a2a.agents, no docker involved) are only checked once at startup: monitorExternalAgents in internal/services/agent_manager.go sleeps 2 seconds, performs a single GetAgentCard fetch with a 5 second timeout per agent, and marks the agent Ready or Failed. That status is then frozen for the lifetime of the session:
- If the remote agent is down (or slow) at startup, it is marked red (
Agent not reachable) and never re-probed - it will not turn green when the agent comes back, even though the agent may be perfectly usable minutes later. The only recovery is restarting the chat session. - Conversely, if a remote agent goes down mid-session, the indicator keeps showing green and the user only finds out when a delegated task fails.
Local (docker) agents have the same gap after startup: waitForReady polls /health only until the agent first becomes ready, after which its state is never revisited.
This is inconsistent with the MCP manager, which already runs recurring liveness probes (internal/services/mcp_manager.go) and re-registers tools when a server comes back. Agents should get the same treatment: a periodic background probe that keeps AgentReadinessState truthful and pushes updates through the existing notifyStatus -> AgentStatusUpdateEvent pipeline, so the A2A: n/m indicator color and the /a2a agents view (which is live-updating since #542) always reflect reality.
Suggested shape (mirroring the MCP manager's probe loop):
- A ticker-driven probe per agent (e.g. every 30s, configurable) that re-runs
GetAgentCardfor external agents andGET <url>/healthfor locally started containers. - State transitions on change only:
Failed -> Readywhen a probe succeeds (with aRecoveredstyle message),Ready -> Failedwhen it stops responding; no event spam while the state is stable. - Probes stop cleanly on session shutdown via the existing context cancellation.
Follow-up from #542, where the one-shot behavior was observed while making the readiness indicator and agents view live.
Acceptance Criteria
- External agents (
a2a.agentsURLs) are re-probed periodically for the lifetime of the session, not just once 2 seconds after startup - Locally started (docker) agents are also re-probed via their
/healthendpoint after they first become ready - An agent that was
Failedat startup transitions toReadyautomatically once it becomes reachable, and theA2A: n/mindicator and/a2aview update accordingly (green when all recover) - An agent that becomes unreachable mid-session transitions to
Failed, turning the indicator red and showing the failure detail in the/a2aview - Status updates are emitted only on state changes so the UI is not flooded with redundant
AgentStatusUpdateEvents - The probe interval is configurable with a sensible default, and probes shut down cleanly with the session
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(a2a): stream agent image pull progress and color-code readiness …
edenreich commentedon Jul 18, 2026
@infer Can you work on this? use /go /go-concurrency /ponytail:ponytail
inference-gateway-maintainer commentedon Jul 18, 2026
Model:
ollama_cloud/deepseek-v4-flash· View JobTodos
Pull Request
#936
✅ Infer Result: Success
All acceptance criteria from the issue are met. The implementation is complete - no further work needed.
Model:
ollama_cloud/deepseek-v4-flash· Exit Code:0· Duration: 10m 36sTokens: 10,011,081 in · 19,094 out · 10,030,175 total (50 requests)
Tool calls: 62 total · 94% success rate
Traces
Stats
Triggered by edenreich · Infer Action
feat(a2a): add recurring liveness probes for A2A agents (#936)
inference-gateway-releaser commentedon Jul 18, 2026
🎉 This issue has been resolved in version 0.149.0 🎉
The release is available on:
Your semantic-release bot 📦🚀