MCPcopy Create free account
hub / github.com/anomalyco/opencode / entryFailed

Function entryFailed

packages/opencode/src/cli/cmd/run/scrollback.shared.ts:17–19  ·  view source on GitHub ↗
(commit: StreamCommit)

Source from the content-addressed store, hash-verified

15}
16
17export function entryFailed(commit: StreamCommit): boolean {
18 return commit.kind === "tool" && (commit.toolState === "error" || commit.part?.state.status === "error")
19}
20
21export function entryLook(commit: StreamCommit, theme: RunEntryTheme): { fg: ColorInput; attrs?: number } {
22 if (commit.kind === "user") {

Callers 2

entryLookFunction · 0.85
entryColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected