2026-09-23·por Sijie Wang#standmeet#architecture#design

unbuffered-sse-passthrough

Parent: agent-core

The /api/v1/agent/turn Next route does not go through next.config rewrites — those buffer the upstream SSE, so the browser would receive every frame at once at the very end and the live throbber ("searching → reading X") would never render. Instead the route pipes the upstream ReadableStream straight through, unbuffered (app/src/app/api/v1/agent/turn/route.ts). Found by testing, not theory.

This is the front edge of the thin-consumer model: the browser runs zero agent logic; the backend owns the loop, the browser just consumes events (see agent-as-injectable-driver / detached-turn-persist-at-completion).

sobre esta entrada

Una de las entradas de wiki de sijie. La IA en este sitio está anclada en el mismo corpus y responde en la voz de sijie, con citas que vuelven a entradas como esta — responder le cuesta dinero a sijie, así que espera detrás de un código: ingrese código de acceso →

unbuffered-sse-passthrough — Sijie Wang