Parent: #764 · Umbrella: #710
Label: backend-agents
Slice
Prove Vercel Workflows in this repo without cutting /api/agent over.
- Add Workflow SDK + Next
withWorkflow on a preview-only path (do not change production turn owner in this slice).
start(fixtureWorkflow) writes a handful of current AgentStreamEvents (text_delta, reasoning_delta, tool_start/tool_result, done) to getWritable().
POST returns x-workflow-run-id and can pipe run.readable.
GET /api/turns/:runId/stream?startIndex= uses getRun + getReadable({ startIndex }).
- Test: start, abort the HTTP client, poll
getRun until completed; reconnect GET from startIndex=0 and from a mid index.
Non-goals
Real runAgent, sandbox, queue, HarnessHost cutover.
Cloud ops
Needs Workflows enabled on the Vercel project (slice D). Until then, local SDK test runtime only.
Refs: resumable streams · start
Parent: #764 · Umbrella: #710
Label:
backend-agentsSlice
Prove Vercel Workflows in this repo without cutting
/api/agentover.withWorkflowon a preview-only path (do not change production turn owner in this slice).start(fixtureWorkflow)writes a handful of currentAgentStreamEvents (text_delta,reasoning_delta,tool_start/tool_result,done) togetWritable().POSTreturnsx-workflow-run-idand can piperun.readable.GET /api/turns/:runId/stream?startIndex=usesgetRun+getReadable({ startIndex }).getRununtilcompleted; reconnect GET fromstartIndex=0and from a mid index.Non-goals
Real
runAgent, sandbox, queue, HarnessHost cutover.Cloud ops
Needs Workflows enabled on the Vercel project (slice D). Until then, local SDK test runtime only.
Refs: resumable streams · start