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

Function statusColor

packages/opencode/src/cli/cmd/run/footer.subagent.tsx:13–27  ·  view source on GitHub ↗
(theme: RunFooterTheme, status: FooterSubagentTab["status"])

Source from the content-addressed store, hash-verified

11export const SUBAGENT_INSPECTOR_ROWS = 14
12
13function statusColor(theme: RunFooterTheme, status: FooterSubagentTab["status"]) {
14 if (status === "completed") {
15 return theme.highlight
16 }
17
18 if (status === "cancelled") {
19 return theme.muted
20 }
21
22 if (status === "error") {
23 return theme.error
24 }
25
26 return theme.highlight
27}
28
29function statusIcon(status: FooterSubagentTab["status"]) {
30 if (status === "completed") {

Callers 2

RunFooterViewFunction · 0.85
RunFooterSubagentBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected