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

Function readPartText

packages/session-ui/src/components/message-part-text.ts:1–3  ·  view source on GitHub ↗
(accum: Record<string, string> | undefined, part: { id: string; text?: string })

Source from the content-addressed store, hash-verified

1export function readPartText(accum: Record<string, string> | undefined, part: { id: string; text?: string }): string {
2 return (accum?.[part.id] ?? part.text ?? "").trim()
3}

Callers 2

textFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected