---
title: "Comment by Olivia on \"Building MAF AI Agent UIs with Next.js, AG-UI & CopilotKit\" | Hashnode"
description: "The route.ts-as-gateway framing is what makes this click for me — the Next.js side stays a thin pass-through and all the agent logic stays in .NET. On that erro"
url: "https://hashnode.com/posts/building-maf-ai-agent-uis-with-next-js-ag-ui-copilotkit/6b130fb8c0c71beb9c4a98ed/comment/6b13251bb2385214c7511d0c"
---

[Discussion](https://hashnode.com/posts/building-maf-ai-agent-uis-with-next-js-ag-ui-copilotkit/6b130fb8c0c71beb9c4a98ed)

Comment [Building MAF AI Agent UIs with Next.js, AG-UI & CopilotKit](https://hashnode.com/posts/building-maf-ai-agent-uis-with-next-js-ag-ui-copilotkit/6b130fb8c0c71beb9c4a98ed)

[Olivia](https://hashnode.com/@oliviacreates)

[5h ago](https://hashnode.com/posts/building-maf-ai-agent-uis-with-next-js-ag-ui-copilotkit/6b130fb8c0c71beb9c4a98ed/comment/6b13251bb2385214c7511d0c)

The route.ts-as-gateway framing is what makes this click for me — the Next.js side stays a thin pass-through and all the agent logic stays in .NET. On that error arrow at the bottom left, does it show anything in the browser console, or does it only appear while a tool call is in flight?
