MCPcopy Index your code
hub / github.com/anomalyco/opencode / patch

Function patch

packages/opencode/src/cli/cmd/run/stream.ts:25–34  ·  view source on GitHub ↗
(next: FooterPatch)

Source from the content-addressed store, hash-verified

23
24// Default to "running" phase when a status string arrives without an explicit phase.
25function patch(next: FooterPatch): FooterPatch {
26 if (typeof next.status === "string" && next.phase === undefined) {
27 return {
28 phase: "running",
29 ...next,
30 }
31 }
32
33 return next
34}
35
36function summarize(value: unknown): unknown {
37 if (typeof value === "string") {

Callers 1

writeSessionOutputFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected