Skip to content

Commit ef1bf44

Browse files
committed
fix(showcase): revert custom agno reasoning handler, use stock AGUI
The custom _run_reasoning_agent handler had a bug where text messages weren't rendered by the frontend despite the backend emitting correct AG-UI events. The stock AGUI handler works with reasoning=False and aimock fixtures — the D5 probe checks for reasoning keywords in the transcript, not for REASONING_MESSAGE events specifically. Locally verified: 28/29 D5 features pass (only auth fails — pre-existing auth gate regression unrelated to this change).
1 parent 73833a3 commit ef1bf44

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

showcase/integrations/agno/src/agent_server.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,7 @@ async def _gen():
667667
interfaces=[
668668
# main_agent is mounted separately below via _attach_hitl_aware_route
669669
# so it can forward tool results for HITL round-trips.
670-
# reasoning_agent is mounted separately below via _attach_reasoning_route
671-
# so it can emit proper REASONING_MESSAGE_* AG-UI events.
670+
AGUI(agent=reasoning_agent, prefix="/reasoning"),
672671
# No-tools agent for the MCP Apps cell. The CopilotKit runtime's
673672
# `mcpApps.servers` middleware injects MCP server tools at request
674673
# time, so the LLM only sees the MCP-provided toolset.
@@ -715,10 +714,6 @@ async def _gen():
715714
_attach_state_aware_route(app, shared_state_rw_agent, "/shared-state-rw")
716715
_attach_state_aware_route(app, subagents_supervisor, "/subagents")
717716

718-
# Reasoning-aware route — emits proper REASONING_MESSAGE_* AG-UI events
719-
# that CopilotKit renders via the reasoningMessage slot. Replaces the stock
720-
# AGUI(agent=reasoning_agent, prefix="/reasoning") interface.
721-
_attach_reasoning_route(app, reasoning_agent, "/reasoning")
722717

723718
# Agent Config Object cell — builds a per-request Agno Agent whose system
724719
# prompt is composed from the CopilotKit provider's forwarded properties

0 commit comments

Comments
 (0)