(base: StreamingContext)
| 288 | // When adding a per-leg field, update BOTH functions (and the contract test in |
| 289 | // resume-leg-context.test.ts). Exported only for that test. |
| 290 | export function makeResumeLegContext(base: StreamingContext): StreamingContext { |
| 291 | return { |
| 292 | ...base, |
| 293 | streamComplete: false, |
| 294 | awaitingAsyncContinuation: undefined, |
| 295 | accumulatedContent: '', |
| 296 | finalAssistantContent: '', |
| 297 | usage: undefined, |
| 298 | cost: undefined, |
| 299 | errors: [], |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | // mergeResumeLegOutputs folds a finished leg's isolated scalars back into the |
| 304 | // shared context. Child (subagent-lane) legs leave the join scalars empty; only |
no outgoing calls
no test coverage detected