2026-09-23·par 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).

à propos de cette entrée

L'une des entrées de wiki de sijie. L'IA sur ce site est fondée sur le même corpus et répond à la voix de sijie, avec citations revenant à des entrées comme celle-ci — répondre coûte argent à sijie, donc cela attend derrière un code : entrer un code d'accès →

unbuffered-sse-passthrough — Sijie Wang