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

Function separatorRows

packages/opencode/src/cli/cmd/run/scrollback.writer.tsx:81–95  ·  view source on GitHub ↗
(
  prev: StreamCommit | undefined,
  next: StreamCommit,
  body: RunEntryBody = entryBody(next),
)

Source from the content-addressed store, hash-verified

79}
80
81export function separatorRows(
82 prev: StreamCommit | undefined,
83 next: StreamCommit,
84 body: RunEntryBody = entryBody(next),
85): number {
86 if (!prev || sameEntryGroup(prev, next)) {
87 return 0
88 }
89
90 if (entryLayout(prev) === "inline" && entryLayout(next, body) === "inline") {
91 return 0
92 }
93
94 return 1
95}
96
97export function RunEntryContent(props: {
98 commit: StreamCommit

Callers 3

RunFooterSubagentBodyFunction · 0.90
createEntryMethod · 0.90
appendMethod · 0.90

Calls 3

entryBodyFunction · 0.90
sameEntryGroupFunction · 0.85
entryLayoutFunction · 0.85

Tested by

no test coverage detected