Skip to content

fix: handle unavailable agents and retain fake manager state - #694

Open
anxkhn wants to merge 1 commit into
a2aproject:mainfrom
anxkhn:fix/demo-ui-agent-list-none
Open

fix: handle unavailable agents and retain fake manager state#694
anxkhn wants to merge 1 commit into
a2aproject:mainfrom
anxkhn:fix/demo-ui-agent-list-none

Conversation

@anxkhn

@anxkhn anxkhn commented Aug 20, 2026

Copy link
Copy Markdown

Summary

The Remote Agents page passed None from ListRemoteAgents() into agents_list() when the conversation server was unavailable, causing Mesop validation to fail. Similar missing-result handling affected GetProcessingMessages() and GetTasks().

This change makes the helpers in demo/ui/state/host_agent_service.py return type-appropriate empty values on errors or missing results. demo/ui/pages/agent_list.py also guards the component call.

In demo/ui/service/server/in_memory_manager.py, pending-message collection now processes every ID, supplies a fallback for tasks without history, and exposes stored events through the events property.

Testing

uv run --no-sync pytest demo/ui/tests/test_host_agent_service.py --verbose

All 11 focused regression tests pass.

@anxkhn
anxkhn force-pushed the fix/demo-ui-agent-list-none branch 2 times, most recently from 8682028 to ddacde7 Compare August 25, 2026 18:04
Signed-off-by: Anas Khan <83116240+anxkhn@users.noreply.github.com>
@anxkhn
anxkhn force-pushed the fix/demo-ui-agent-list-none branch from ddacde7 to 1170421 Compare August 25, 2026 18:04
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