You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP projector emits notifications/progress only for progress events, never for an Agent.Progress node streamed in a Suspense shell #448
A route that streams a Suspense fallback of <Agent.Progress completed={0} message="…" /> produces a shell document carrying a progress node (visible in renderRouteEvents, the Workbench, and --ndjson), but the MCP projector never turns that node into a notifications/progress notification: projectMcpEventStream only notifies on progressevents (case 'progress' in the event loop), and a progress node inside a shell/replace document is not one.
So an MCP client that passed a progressToken receives nothing while the page is suspended, even though the framework's own documentation frames Agent.Progress as the streaming progress surface and the shell demonstrably streamed it. The only way to reach MCP progress today is (await agent()).progress.report(...), which means every streamed page has to state the same message twice (once in the fallback, once in the report) or route it through a shared constant.
Repro
Preview agent-bundle@43abb2db0, a generated tool route:
asyncfunctionPage({ input, signal }){awaitnewPromise((resolve)=>setTimeout(resolve,50));return<Agent.Resultvalue={{ok: true}}><Agent.Text>done</Agent.Text></Agent.Result>;}exportdefaultasyncfunctionRoute({ input, signal }){return(<Suspensefallback={<Agent.Progresscompleted={0}message="Reaching the seedbox"/>}><Pageinput={input}signal={signal}/></Suspense>);}
constrendered=awaitrenderRouteEvents('tool:seedbox/check',{input: {}});// rendered.events: shell (root contains {"kind":"progress","message":"Reaching the seedbox"}), replace, completeconstprojected=awaitprojectTargetCapabilities(rendered,createTargetCapabilityFixture({audio: false,image: false,progress: true,resource: false,richContentFallback: 'text'}),);projected.progress// [] ← expected one notification with message "Reaching the seedbox", progress 0
Adding await (await agent()).progress.report({ completed: 0, message: 'Reaching the seedbox' }) at the top of Page makes projected.progress non-empty; the fallback node alone never does.
Expected
One of:
The projector emits a notifications/progress for each new progress node that appears in a streamed shell/replace document (deduplicated by the same monotonic completed rule it applies to events), so a Suspense fallback is enough; or
docs/framework-mode.md / the Agent.Progress reference states explicitly that a progress node is document content only and that MCP progress requires progress.report, and the example (audiobook-curator audit_library, which does both with the same string) calls out why.
movie-library ships the double form (src/progress.tsannounce(message) + the fallback reading the same computed message) with a comment pointing here.
Re-checked on main @ 284141958: projectMcpEventStream still notifies only on progress events; nothing between 43abb2db0 and main changes the projector, so the double form is still required. Consumer evidence on a PR: ScriptedAlchemy/movie-library#8 — src/progress.ts (announce), every tracker/seedbox page calls it with the same string its Suspense fallback renders (e.g. src/pages/search.tsx:30-49); tests/route-unit/streaming.test.ts pins that the shell carries the progress node and that the projector only emits the notification because of the explicit report.
Activity
ScriptedAlchemy commentedon Sep 3, 2026
Re-checked on
main@284141958:projectMcpEventStreamstill notifies only on progress events; nothing between43abb2db0and main changes the projector, so the double form is still required. Consumer evidence on a PR: ScriptedAlchemy/movie-library#8 —src/progress.ts(announce), every tracker/seedbox page calls it with the same string itsSuspensefallback renders (e.g.src/pages/search.tsx:30-49);tests/route-unit/streaming.test.tspins that the shell carries the progress node and that the projector only emits the notification because of the explicit report.fix(cli): draw the TTY progress line from a streamed Agent.Progress f…
fix(mcp): project a streamed Agent.Progress fallback to notifications…
fix(cli): draw the TTY progress line from a streamed Agent.Progress f…
fix(mcp): project a streamed Agent.Progress fallback to notifications…
fix(cli): draw the TTY progress line from a streamed Agent.Progress f…
fix(mcp): project a streamed Agent.Progress fallback to notifications…